diff options
author | Prem Sichanugrist <s@sikachu.com> | 2011-04-10 12:27:26 +0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2011-04-10 16:47:50 +0800 |
commit | 63cd92f9f346acefca1ad014873c971837843cdb (patch) | |
tree | 23be83a25e191359502ae7b95e83deee97ba93fe /railties/lib/rails/generators/erb/scaffold/templates/index.html.erb | |
parent | c0efc4009adb870ee23e93d46ac374f772d8cb4f (diff) | |
download | rails-63cd92f9f346acefca1ad014873c971837843cdb.tar.gz rails-63cd92f9f346acefca1ad014873c971837843cdb.tar.bz2 rails-63cd92f9f346acefca1ad014873c971837843cdb.zip |
Rails will now generate Ruby 1.9 style hash when running scaffold_controller generator on Ruby 1.9.x
The new hash syntax of Ruby 1.9 looks more superior, so we decide to switch to it in the places that appropriate.
This patch has been requested by DHH.
Diffstat (limited to 'railties/lib/rails/generators/erb/scaffold/templates/index.html.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 4c46db4d67..a7393cfe18 100644 --- a/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb +++ b/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb @@ -17,7 +17,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 %>, :confirm => 'Are you sure?', :method => :delete %></td> + <td><%%= link_to 'Destroy', <%= singular_table_name %>, <%= key_value :confirm, "'Are you sure?'" %>, <%= key_value :method, ":delete" %> %></td> </tr> <%% end %> </table> |