lib/generators/redde/scaffold/templates/index.html.haml in redde-0.0.7 vs lib/generators/redde/scaffold/templates/index.html.haml in redde-0.0.8

- old
+ new

@@ -28,10 +28,10 @@ %td.show= link_to "", admin_<%= singular_controller_routing_path %>_path(<%= resource_name %>, <%= resource_name %>: {visible: !<%= resource_name %>.visible}), :class => <%= resource_name %>.visible ? nil : "not-show", data: {method: 'put'} <%- else -%> %td= link_to <%= resource_name %>.<%= column.name %>, [:edit, :admin, <%= resource_name %>] <%- end -%> <%- end -%> - %td= link_to "Удалить", [:admin, <%= resource_name %>], :method => :delete, :confirm => "Удалить?", class: :del + %td= link_to "Удалить", [:admin, <%= resource_name %>], method: :delete, data: { confirm: "Точно Удалить?" }, class: :del <%- if column_names.include?("position") -%> = sortable sort_admin_<%= plural_resource_name %>_path <%- end -%> \ No newline at end of file