Skip to content
Browse files

Remove respond_to

  • Loading branch information...
1 parent 16375c8 commit 8f1d4d38183cd591f13676c4e99a207c5d80c9d8 Ryan Bigg committed Mar 16, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 app/controllers/users_controller.rb
View
3 app/controllers/users_controller.rb
@@ -25,13 +25,12 @@ def update
params[:user][:crypted_password] = current_user.encrypt(params[:user][:password])
flash[:notice] = t(:password_has_been_changed)
end
- respond_to do |format|
if current_user.update_attributes(params[:user])
flash[:notice] ||= t(:profile_has_been_updated)
redirect_to edit_user_path(current_user)
else
@themes = Theme.all
- format.html { render :action => "edit" }
+ render :action => "edit"
end
end
end

0 comments on commit 8f1d4d3

Please sign in to comment.
Something went wrong with that request. Please try again.