Class: Me::ProfilesController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/profiled/me/profiles_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



19
20
# File 'app/controllers/profiled/me/profiles_controller.rb', line 19

def destroy
end

#editObject



8
9
# File 'app/controllers/profiled/me/profiles_controller.rb', line 8

def edit
end

#showObject



5
6
# File 'app/controllers/profiled/me/profiles_controller.rb', line 5

def show
end

#updateObject



11
12
13
14
15
16
17
# File 'app/controllers/profiled/me/profiles_controller.rb', line 11

def update
  @profile.assign_attributes profile_params

  unless @profile.save
    render :edit, locals: { model: @profile }, status: :unprocessable_entity
  end
end