test/dummy/app/views/images/_form.html.haml in attached-1.0.4 vs test/dummy/app/views/images/_form.html.haml in attached-1.0.5
- old
+ new
@@ -1,15 +1,15 @@
-= form_for image, :html => { :multipart => true, :role => 'form' } do |form|
+= form_for image, html: { multipart: true, role: 'form' } do |form|
- image.errors.each do |method, message|
- = render 'shared/error', :method => method, :message => message
+ = render 'shared/error', method: method, message: message
.form-group
= form.label :name
- = form.text_field :name, :class => "form-control"
+ = form.text_field :name, class: "form-control"
.form-group
= form.label :file
= form.file_field :file
.form-actions
- = form.submit "Submit", :class => 'btn btn-primary'
- = link_to 'Cancel', :back, :class => 'btn'
+ = form.submit "Submit", class: 'btn btn-primary'
+ = link_to 'Cancel', :back, class: 'btn'
\ No newline at end of file