From a5b239d9d8940b08e2fcbcc38758ed9aeb4e2c1b Mon Sep 17 00:00:00 2001 From: Bryan Larsen Date: Fri, 19 Feb 2010 15:38:03 -0500 Subject: [PATCH] auto-actions-story-status-controller Whenever you create a new model + controller with Hobo, get into the habit of thinking about permissions and controller actions. In this case, we probably want only admins to be able to manage the permissions. As for actions, we probably only want the write actions, and the index page: SHOW_PATCH --- app/controllers/story_statuses_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/story_statuses_controller.rb b/app/controllers/story_statuses_controller.rb index 53a3817..318bad5 100644 --- a/app/controllers/story_statuses_controller.rb +++ b/app/controllers/story_statuses_controller.rb @@ -2,6 +2,6 @@ class StoryStatusesController < ApplicationController hobo_model_controller - auto_actions :all + auto_actions :write_only, :new, :index end