diff options
author | Carlos Galdino <carloshsgaldino@gmail.com> | 2012-06-01 16:54:21 -0300 |
---|---|---|
committer | Carlos Galdino <carloshsgaldino@gmail.com> | 2012-07-18 10:32:17 -0300 |
commit | fb8a830a329b78a5863c1dbfb70a4005d3de60ec (patch) | |
tree | f884067efeb47391844fa75118505410dee568f5 /railties | |
parent | c08f30ff5fcda7e07cd9275a073acb2091e4b3f7 (diff) | |
download | rails-fb8a830a329b78a5863c1dbfb70a4005d3de60ec.tar.gz rails-fb8a830a329b78a5863c1dbfb70a4005d3de60ec.tar.bz2 rails-fb8a830a329b78a5863c1dbfb70a4005d3de60ec.zip |
Remove `:confirm` in favor of `:data => { :confirm => 'Text' }` option
This applies to the following helpers:
`button_to`
`button_tag`
`image_submit_tag`
`link_to`
`submit_tag`
Diffstat (limited to 'railties')
-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 d78d97b2b4..f5182bcc50 100644 --- a/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb +++ b/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb @@ -19,7 +19,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 %>, method: :delete, data: { confirm: 'Are you sure?' } %></td> <%% end %> </tbody> </table> |