app/views/attachments/_form.html.haml in wheels-0.1.28 vs app/views/attachments/_form.html.haml in wheels-0.1.30
- old
+ new
@@ -1,9 +1,9 @@
--if resource.errors.any?
+-if @attachment.errors.any?
#errorExplanation
- %h2= "#{pluralize(resource.errors.count, "error")} prohibited this image from being saved:"
+ %h2= "#{pluralize(@attachment.errors.count, "error")} prohibited this image from being saved:"
%ul
- - resource.errors.full_messages.each do |msg|
+ - @attachment.errors.full_messages.each do |msg|
%li= msg
= form_for [@page, Attachment.new(:page=>@page)], :remote=>true, :html=>{:multipart=>true, :id=>"upload_form"} do |f|
= f.file_field :file, :id=>"file_input"
= f.hidden_field :file_file_name, :id=>"file_file_name_input"