test/dummy/app/views/images/index.html.haml in attached-1.0.4 vs test/dummy/app/views/images/index.html.haml in attached-1.0.5
- old
+ new
@@ -1,20 +1,20 @@
.page-header
%h1
List
%small Images
%table.table.table-striped.table-bordered
- %colgroup{ :width => '60%' }
- %colgroup{ :width => '20%' }
- %colgroup{ :width => '20%' }
+ %colgroup{ width: '60%' }
+ %colgroup{ width: '20%' }
+ %colgroup{ width: '20%' }
- @images.each do |image|
%tr
%th= image.name
%td= image.file_extension
%td= number_to_human_size image.file_size
- %td= link_to 'Show', image_path(image), :class => 'btn btn-info'
- %td= link_to 'Edit', edit_image_path(image), :class => 'btn btn-warning'
- %td= link_to 'Destroy', image_path(image), :method => :delete, :class => 'btn btn-danger'
+ %td= link_to 'Show', image_path(image), class: 'btn btn-info'
+ %td= link_to 'Edit', edit_image_path(image), class: 'btn btn-warning'
+ %td= link_to 'Destroy', image_path(image), method: :delete, class: 'btn btn-danger'
%p
- = link_to 'New', new_image_path, :class => 'btn btn-primary'
- = link_to 'Back', root_path, :class => 'btn'
+ = link_to 'New', new_image_path, class: 'btn btn-primary'
+ = link_to 'Back', root_path, class: 'btn'
\ No newline at end of file