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
7 8 9 10 |
# File 'app/controllers/sunrise/settings_controller.rb', line 7 def edit @settings = Settings.get_all respond_with(@settings) end |
#update ⇒ Object
12 13 14 15 |
# File 'app/controllers/sunrise/settings_controller.rb', line 12 def update Settings.update_attributes(params[:settings]) redirect_to root_path end |