Sha256: 777ed505640305f6a299787d75392eca28f6be8a41ed5cda2af8f855022f7aa5
Contents?: true
Size: 666 Bytes
Versions: 9
Compression:
Stored size: 666 Bytes
Contents
class Manage::SettingsController < Manage::BaseController authorize_resource :class => false # GET /manage/settings def index end # POST /manage/settings 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 end
Version data entries
9 entries across 9 versions & 1 rubygems