Browse files


Finally, now that not all projects are viewable by all users, the projects index page won't work too well. In addition, the top-level New Project page at `/projects/new` isn't suited to our purposes any more. It will fit better with Hobo's RESTful architecture to create projects for specific users, e.g. at `/users/12/projects/new`

So we'll modify the actions provided by the projects controller to:


Note that there won't be a link to that new-project page by default -- we'll add one in the next section.
  • Loading branch information...
bryanlarsen authored and iox committed Jun 3, 2013
1 parent 7618e59 commit d589d6b8562b3da62db95f4c9082d0944c4d7b5a
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/controllers/projects_controller.rb
@@ -2,7 +2,9 @@ class ProjectsController < ApplicationController
auto_actions :all
auto_actions :show, :edit, :update, :destroy
auto_actions_for :owner, [:new, :create]
def show
@project = find_instance

0 comments on commit d589d6b

Please sign in to comment.