Class: ProfilesController

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

Instance Method Summary collapse

Instance Method Details

#editObject



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

def edit
end

#showObject



8
9
10
11
12
13
14
15
16
# File 'app/controllers/profiles_controller.rb', line 8

def show
  subject_profile

  respond_to do |format|
    format.html
    format.js
    format.json { render json: subject_profile.to_json }
  end
end

#updateObject



21
22
23
24
25
26
27
28
# File 'app/controllers/profiles_controller.rb', line 21

def update
  subject_profile.update_attributes profile_params

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