Skip to content

Commit

Permalink
update-project-actions
Browse files Browse the repository at this point in the history
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:

SHOW_PATCH

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 Aug 12, 2013
1 parent 7618e59 commit d589d6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/projects_controller.rb
Expand Up @@ -2,7 +2,9 @@ class ProjectsController < ApplicationController

hobo_model_controller

auto_actions :all
auto_actions :show, :edit, :update, :destroy

auto_actions_for :owner, [:new, :create]

def show
@project = find_instance
Expand Down

0 comments on commit d589d6b

Please sign in to comment.