app/views/users/edit.html.haml in wheels-0.1.28 vs app/views/users/edit.html.haml in wheels-0.1.30

- old
+ new

@@ -1,13 +1,13 @@ %h1 Update your personal info: .form - = form_for resource do |f| - - if resource.errors.any? + = form_for @user do |f| + - if @user.errors.any? #errorExplanation - %h2= "#{pluralize(resource.errors.count, "error")} prohibited this change:" + %h2= "#{pluralize(@user.errors.count, "error")} prohibited this change:" %ul - - resource.errors.full_messages.each do |msg| + - @user.errors.full_messages.each do |msg| %li= msg .fieldGroup = f.fields_for :profile do |pf| - unless pf.object.company.empty? .field