Skip to content

Commit

Permalink
auto-actions-for-story
Browse files Browse the repository at this point in the history
Create a story and you'll see the story has the same issue with it's task - there's no way to create one. Again we can add the `auto_actions_for` declaration to the tasks controller, but this time we'll only ask for a `create` action and not a `new` action:

SHOW_PATCH

Hobo's page generator can cope with the lack of a 'New Task' page -- it gives you an in-line form on the story page.
  • Loading branch information
bryanlarsen authored and iox committed Jun 6, 2013
1 parent 1935d1b commit 2371666
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/tasks_controller.rb
Expand Up @@ -4,4 +4,6 @@ class TasksController < ApplicationController

auto_actions :all, :except => :index

auto_actions_for :story, :create

end

0 comments on commit 2371666

Please sign in to comment.