Class: Sunrise::SettingsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Sunrise::SettingsController
- Defined in:
- app/controllers/sunrise/settings_controller.rb
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
5 6 7 8 |
# File 'app/controllers/sunrise/settings_controller.rb', line 5 def edit @settings = Settings.get_all respond_with(@settings) end |
#update ⇒ Object
10 11 12 13 |
# File 'app/controllers/sunrise/settings_controller.rb', line 10 def update Settings.update_attributes(params[:settings]) redirect_to root_path end |