diff options
author | Michael Koziarski <michael@koziarski.com> | 2006-03-14 01:57:12 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2006-03-14 01:57:12 +0000 |
commit | c6abe81b1eebd741b2a36e6618bf6f1c07b87588 (patch) | |
tree | e93e0fe02b650b3eb5e5a3269b445de296b8f09a /actionpack/lib/action_controller/templates | |
parent | e9d6fea533e6b6fd1d9a6024de113370fdd13926 (diff) | |
download | rails-c6abe81b1eebd741b2a36e6618bf6f1c07b87588.tar.gz rails-c6abe81b1eebd741b2a36e6618bf6f1c07b87588.tar.bz2 rails-c6abe81b1eebd741b2a36e6618bf6f1c07b87588.zip |
Add verification to scaffolds (generated and reflection based). Require POST for unsafe actions [Michael Koziarski]. Closes #2601
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/templates')
-rw-r--r-- | actionpack/lib/action_controller/templates/scaffolds/list.rhtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/templates/scaffolds/list.rhtml b/actionpack/lib/action_controller/templates/scaffolds/list.rhtml index f0e36fdbfe..37e761679c 100644 --- a/actionpack/lib/action_controller/templates/scaffolds/list.rhtml +++ b/actionpack/lib/action_controller/templates/scaffolds/list.rhtml @@ -14,7 +14,7 @@ <% end %> <td><%= link_to "Show", :action => "show#{@scaffold_suffix}", :id => entry %></td> <td><%= link_to "Edit", :action => "edit#{@scaffold_suffix}", :id => entry %></td> - <td><%= link_to "Destroy", {:action => "destroy#{@scaffold_suffix}", :id => entry}, {:confirm => "Are you sure?"} %></td> + <td><%= link_to "Destroy", {:action => "destroy#{@scaffold_suffix}", :id => entry}, {:confirm => "Are you sure?", :post=>true} %></td> </tr> <% end %> </table> |