Class: Jabe::Admin::SettingsController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- Jabe::ApplicationController
- BaseController
- Jabe::Admin::SettingsController
- Defined in:
- app/controllers/jabe/admin/settings_controller.rb
Instance Method Summary collapse
Methods included from BodyClassHelper
Methods included from PublicEntryUrl
Instance Method Details
#update ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'app/controllers/jabe/admin/settings_controller.rb', line 4 def update if Jabe::SETTINGS.update_attributes(params[:settings]) Jabe::SETTINGS.do_updates redirect_to admin_root_path, :notice => 'Settings updated.' else render :edit end end |