Class: ProfilesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ProfilesController
- Defined in:
- app/controllers/profiles_controller.rb
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
6 7 8 |
# File 'app/controllers/profiles_controller.rb', line 6 def edit @user = current_user end |
#update ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/profiles_controller.rb', line 10 def update @user = current_user if @user.update_attributes(params[:user]) flash[:notice] = "Your user account has been updated." redirect_to edit_profile_url else render :action => :edit end end |