diff options
author | Rahul P. Chaudhari <rahul100885@gmail.com> | 2013-02-09 22:40:45 +0530 |
---|---|---|
committer | Rahul P. Chaudhari <rahul100885@gmail.com> | 2013-02-10 01:19:02 +0530 |
commit | afdb84a1fe6694b667a06a8bfe77a5c5fbce837d (patch) | |
tree | 6f13860deebee4f8e260dc378485ad24ed4705f3 /railties/lib/rails | |
parent | da483d3f307a725d10fa3888df07d0bcbb14a0d2 (diff) | |
download | rails-afdb84a1fe6694b667a06a8bfe77a5c5fbce837d.tar.gz rails-afdb84a1fe6694b667a06a8bfe77a5c5fbce837d.tar.bz2 rails-afdb84a1fe6694b667a06a8bfe77a5c5fbce837d.zip |
Added notice message for destroy method in scaffold
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb b/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb index e813437d75..72281a2fef 100644 --- a/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +++ b/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb @@ -47,7 +47,7 @@ class <%= controller_class_name %>Controller < ApplicationController # DELETE <%= route_url %>/1 def destroy @<%= orm_instance.destroy %> - redirect_to <%= index_helper %>_url + redirect_to <%= index_helper %>_url, notice: <%= "'#{human_name} was successfully destroyed.'" %> end private |