Class: Socializer::PersonPlacesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Socializer::PersonPlacesController
- Defined in:
- app/controllers/socializer/person_places_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
5 6 7 8 9 |
# File 'app/controllers/socializer/person_places_controller.rb', line 5 def create @person_place = current_user.adresses.build(params[:person_place]) @person_place.save! redirect_to current_user end |
#destroy ⇒ Object
16 17 18 19 |
# File 'app/controllers/socializer/person_places_controller.rb', line 16 def destroy @person_place.destroy redirect_to current_user end |
#update ⇒ Object
11 12 13 14 |
# File 'app/controllers/socializer/person_places_controller.rb', line 11 def update @person_place.update!(params[:person_place]) redirect_to current_user end |