Class: PhonesController
- Inherits:
-
ArtfullyOseController
- Object
- ActionController::Base
- ArtfullyOseController
- PhonesController
- Defined in:
- app/controllers/phones_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
4 5 6 7 |
# File 'app/controllers/phones_controller.rb', line 4 def create @person.phones.create(params[:phone]) redirect_to @person end |
#destroy ⇒ Object
9 10 11 12 |
# File 'app/controllers/phones_controller.rb', line 9 def destroy Phone.destroy(params[:id]) redirect_to person_url(@person) end |