Class: ProfilesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ProfilesController
- Defined in:
- app/controllers/profiles_controller.rb
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
18 19 |
# File 'app/controllers/profiles_controller.rb', line 18 def edit end |
#show ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/profiles_controller.rb', line 8 def show subject_profile respond_to do |format| format.html format.js format.json { render json: subject_profile.to_json } end end |
#update ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'app/controllers/profiles_controller.rb', line 21 def update subject_profile.update_attributes profile_params respond_to do |format| format.html{ redirect_to [profile_subject, :profile] } format.js end end |