Class: Socializer::PeopleController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Socializer::PeopleController
- Defined in:
- app/controllers/socializer/people_controller.rb
Instance Method Summary collapse
- #edit ⇒ Object
- #index ⇒ Object
-
#likes ⇒ Object
TODO: Should be handled by the likes controller.
- #message ⇒ Object
- #show ⇒ Object
- #update ⇒ Object
Instance Method Details
#edit ⇒ Object
12 13 14 |
# File 'app/controllers/socializer/people_controller.rb', line 12 def edit @person = current_user end |
#index ⇒ Object
5 6 7 |
# File 'app/controllers/socializer/people_controller.rb', line 5 def index @people = Person.all end |
#likes ⇒ Object
TODO: Should be handled by the likes controller. Used to display the likes in the user profile
23 24 25 |
# File 'app/controllers/socializer/people_controller.rb', line 23 def likes @likes = @person.likes end |
#message ⇒ Object
27 28 29 |
# File 'app/controllers/socializer/people_controller.rb', line 27 def @current_id = @person.guid end |
#show ⇒ Object
9 10 |
# File 'app/controllers/socializer/people_controller.rb', line 9 def show end |
#update ⇒ Object
16 17 18 19 |
# File 'app/controllers/socializer/people_controller.rb', line 16 def update current_user.update!(params[:person]) redirect_to current_user end |