Class: Stay::ProfilesController

Inherits:
BaseApiController show all
Defined in:
app/controllers/stay/profiles_controller.rb

Instance Method Summary collapse

Instance Method Details

#newObject



4
5
# File 'app/controllers/stay/profiles_controller.rb', line 4

def new
end

#showObject



7
8
9
# File 'app/controllers/stay/profiles_controller.rb', line 7

def show
    render json: { profile: @profile }
end

#updateObject



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