Class: Droom::PreferencesController
- Inherits:
-
EngineController
- Object
- ApplicationController
- EngineController
- Droom::PreferencesController
- Defined in:
- app/controllers/droom/preferences_controller.rb
Instance Method Summary collapse
Methods inherited from EngineController
Instance Method Details
#create ⇒ Object
9 10 11 12 13 |
# File 'app/controllers/droom/preferences_controller.rb', line 9 def create @preference.update_attributes(params[:preference]) @preference.save render :partial => "preference" end |
#update ⇒ Object
15 16 17 18 19 |
# File 'app/controllers/droom/preferences_controller.rb', line 15 def update @preference.update_attributes(params[:preference]) @preference.save render :partial => "preference" end |