Class: Droom::PreferencesController

Inherits:
EngineController show all
Defined in:
app/controllers/droom/preferences_controller.rb

Instance Method Summary collapse

Methods inherited from EngineController

#current_ability

Instance Method Details

#createObject



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

#updateObject



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