Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a small bug after testing so that the error message showed up.

  • Loading branch information...
commit 5cae1dfe74a5b08ff7e84ff0a31d6c1766dd425a 1 parent b2cc14b
Paul authored
View
1  app/controllers/users_controller.rb
@@ -27,7 +27,6 @@ def update
end
respond_to do |format|
if current_user.update_attributes(params[:user])
- current_user.update_attributes!(params[:user])
flash[:notice] ||= t(:profile_has_been_updated)
redirect_to edit_user_path(current_user)
else
View
2  app/views/users/edit.html.haml
@@ -1,4 +1,4 @@
-= error_messages_for :user
+= error_messages_for :user, :object => current_user
- form_for current_user, :html => { :multipart => true } do |f|
%table.action-box{:cellpadding => "2", :cellspacing => "0", :width => "100%"}
%thead
Please sign in to comment.
Something went wrong with that request. Please try again.