Class: Stay::ProfilesController
- Inherits:
-
BaseApiController
- Object
- ActionController::Base
- BaseApiController
- Stay::ProfilesController
- Defined in:
- app/controllers/stay/profiles_controller.rb
Instance Method Summary collapse
Instance Method Details
#new ⇒ Object
4 5 |
# File 'app/controllers/stay/profiles_controller.rb', line 4 def new end |
#show ⇒ Object
7 8 9 |
# File 'app/controllers/stay/profiles_controller.rb', line 7 def show render json: { profile: @profile } end |
#update ⇒ Object
11 12 13 14 |
# File 'app/controllers/stay/profiles_controller.rb', line 11 def update @profile.update(profile_params) render json: { profile: @profile }, status: :ok end |