Class: Manage::SettingsController
- Inherits:
-
BaseController
- Object
- BaseController
- Manage::SettingsController
- Defined in:
- app/controllers/manage/settings_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
POST /manage/settings.
-
#index ⇒ Object
GET /manage/settings.
Instance Method Details
#create ⇒ Object
POST /manage/settings
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/controllers/manage/settings_controller.rb', line 9 def create respond_to do |format| if Sunrise::SystemSettings.update_settings(params[:settings]) flash[:notice] = I18n.t('flash.manage.settings.create.success') format.html { redirect_to manage_settings_path } format.xml { head :ok } else flash.now[:error] = I18n.t('flash.manage.settings.create.failure') format.html { render :action => "index" } format.xml { head :unprocessable_entity } end end end |
#index ⇒ Object
GET /manage/settings
5 6 |
# File 'app/controllers/manage/settings_controller.rb', line 5 def index end |