Class: ProfilesController

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

Instance Method Summary collapse

Instance Method Details

#editObject



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

def edit
  current_profile
end

#showObject



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

def show
  subject_profile
end

#updateObject



14
15
16
17
18
19
20
21
# File 'app/controllers/profiles_controller.rb', line 14

def update
  current_profile.update_attributes profile_params

  respond_to do |format|
    format.html{ redirect_to [profile_subject, :profile] }
    format.js
  end
end