Class: ProfilesController

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

Instance Method Summary collapse

Instance Method Details

#editObject


13
14
# File 'app/controllers/profiles_controller.rb', line 13

def edit
end

#showObject


9
10
11
# File 'app/controllers/profiles_controller.rb', line 9

def show
  respond_with(@profile)
end

#updateObject


16
17
18
19
# File 'app/controllers/profiles_controller.rb', line 16

def update
  @profile.update(profile_params)
  redirect_to public_profile_path(@profile.id)
end