@@ -27,16 +27,16 @@ Or install it yourself as:
27
27
28
28
There is nothing you need to do to get this working. A helper could be useful for handling large amount of destroy buttons:
29
29
30
- def destroy_link_to(path, options)
31
- link_to t('.destroy'), path,
32
- : method => : delete ,
33
- : class => "btn",
34
- : confirm => t('.destroy_confirm.body', : item => options[ : item ] ),
35
- "data-confirm-title" => t('.destroy_confirm.title', : item => options[ : item ] ),
36
- "data-confirm-cancel" => t('.destroy_confirm.cancel', : item => options[ : item ] ),
37
- "data-confirm-proceed" => t('.destroy_confirm.proceed', : item => options[ : item ] ),
38
- "data-confirm-proceed-class" => "btn-danger"
39
- end
30
+ def destroy_link_to(path, options)
31
+ link_to t('.destroy'), path,
32
+ :method => :delete,
33
+ :class => "btn",
34
+ :confirm => t('.destroy_confirm.body', :item => options[:item]),
35
+ "data-confirm-title" => t('.destroy_confirm.title', :item => options[:item]),
36
+ "data-confirm-cancel" => t('.destroy_confirm.cancel', :item => options[:item]),
37
+ "data-confirm-proceed" => t('.destroy_confirm.proceed', :item => options[:item]),
38
+ "data-confirm-proceed-class" => "btn-danger"
39
+ end
40
40
41
41
## Contributing
42
42
0 commit comments