diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-10-26 15:56:48 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-10-26 15:56:48 +0000 |
commit | b9ffbd3166fae25fe3b18c60ce2de2bdde166fb5 (patch) | |
tree | d1a309729cb896610e737359fe9c3cf8d79662f0 /railties | |
parent | 0f5f05b51ec7a90d9eeb1592df9c497b190f15a0 (diff) | |
download | rails-b9ffbd3166fae25fe3b18c60ce2de2bdde166fb5.tar.gz rails-b9ffbd3166fae25fe3b18c60ce2de2bdde166fb5.tar.bz2 rails-b9ffbd3166fae25fe3b18c60ce2de2bdde166fb5.zip |
Fix scaffolding from using deprecated :post => true (closes #6499)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5366 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails_generator/generators/components/scaffold/templates/view_list.rhtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/generators/components/scaffold/templates/view_list.rhtml b/railties/lib/rails_generator/generators/components/scaffold/templates/view_list.rhtml index ea1ca7ea53..3e2a414485 100644 --- a/railties/lib/rails_generator/generators/components/scaffold/templates/view_list.rhtml +++ b/railties/lib/rails_generator/generators/components/scaffold/templates/view_list.rhtml @@ -14,7 +14,7 @@ <%% end %> <td><%%= link_to 'Show', :action => 'show<%= suffix %>', :id => <%= singular_name %> %></td> <td><%%= link_to 'Edit', :action => 'edit<%= suffix %>', :id => <%= singular_name %> %></td> - <td><%%= link_to 'Destroy', { :action => 'destroy<%= suffix %>', :id => <%= singular_name %> }, :confirm => 'Are you sure?', :post => true %></td> + <td><%%= link_to 'Destroy', { :action => 'destroy<%= suffix %>', :id => <%= singular_name %> }, :confirm => 'Are you sure?', :method => :post %></td> </tr> <%% end %> </table> |