Permalink
Browse files

Action destroy was missing for inherited_resources-controller template.

  • Loading branch information...
1 parent 6efba39 commit 5bddcb96bb9c1fcd456277e5109604ef86552249 @grimen committed Apr 20, 2009
View
2 generators/dry_scaffold/templates/controller_inherited_resources.rb
@@ -1,6 +1,6 @@
class <%= controller_class_name %>Controller < InheritedResources::Base
- actions :index, :show, :new, :create, :edit, :update
+ actions :index, :show, :new, :create, :edit, :update, :destroy
respond_to :html, :xml, :json
protected
View
2 generators/dry_scaffold/templates/prototypes/controller_inherited_resources.rb
@@ -1,6 +1,6 @@
class ResourcesController < InheritedResources::Base
- actions :index, :show, :new, :create, :edit, :update
+ actions :index, :show, :new, :create, :edit, :update, :destroy
respond_to :html, :xml, :json
protected

0 comments on commit 5bddcb9

Please sign in to comment.