Permalink
Browse files

auto-actions-for-story

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 3, 2013
1 parent 1935d1b commit 2371666dd14577fa248555a5f72cf70668b2f9c2
Showing with 2 additions and 0 deletions.
  1. +2 −0 app/controllers/tasks_controller.rb
@@ -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.