Class: ProfilesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ProfilesController
- Defined in:
- app/controllers/profiles_controller.rb
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
10 11 12 |
# File 'app/controllers/profiles_controller.rb', line 10 def edit current_profile end |
#show ⇒ Object
6 7 8 |
# File 'app/controllers/profiles_controller.rb', line 6 def show subject_profile end |
#update ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'app/controllers/profiles_controller.rb', line 14 def update current_profile.update_attributes profile_params respond_to do |format| format.html{ redirect_to [profile_subject, :profile] } format.js end end |