diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-03-13 23:10:32 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-03-13 23:10:32 -0300 |
commit | 1ced5ca67bc553ebc4a8a1b3ba4776e882587600 (patch) | |
tree | 9ce6e410e799e133de74d93e8e95507166ab9610 /railties/lib/rails/generators/erb | |
parent | ec22a2b81356511b7613fcd41b693035a3cf5040 (diff) | |
download | rails-1ced5ca67bc553ebc4a8a1b3ba4776e882587600.tar.gz rails-1ced5ca67bc553ebc4a8a1b3ba4776e882587600.tar.bz2 rails-1ced5ca67bc553ebc4a8a1b3ba4776e882587600.zip |
Remove key_value helper now that master is 1.9 only and we always use
the 1.9 hash syntax in the generators.
Diffstat (limited to 'railties/lib/rails/generators/erb')
-rw-r--r-- | railties/lib/rails/generators/erb/scaffold/templates/index.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb b/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb index 85296ca37b..303331a4f0 100644 --- a/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb +++ b/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb @@ -16,7 +16,7 @@ <% end -%> <td><%%= link_to 'Show', <%= singular_table_name %> %></td> <td><%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %></td> - <td><%%= link_to 'Destroy', <%= singular_table_name %>, <%= key_value :confirm, "'Are you sure?'" %>, <%= key_value :method, ":delete" %> %></td> + <td><%%= link_to 'Destroy', <%= singular_table_name %>, confirm: 'Are you sure?', method: :delete %></td> <%% end %> </table> |