Class: Tenon::SettingsController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- Tenon::SettingsController
- Defined in:
- app/controllers/tenon/settings_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
10 11 12 13 |
# File 'app/controllers/tenon/settings_controller.rb', line 10 def show :update, Tenon::MySettings @settings = Tenon::MySettings end |
#update ⇒ Object
3 4 5 6 7 8 |
# File 'app/controllers/tenon/settings_controller.rb', line 3 def update :update, Tenon::MySettings params[:settings].each { |key, value| Tenon::MySettings.send((key + '=').to_sym, value) } flash[:notice] = 'Your settings have been saved.' redirect_to settings_path end |