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

Version Path
sunrise-core-0.2.2 app/controllers/manage/settings_controller.rb
sunrise-core-0.2.1 app/controllers/manage/settings_controller.rb
sunrise-core-0.2.0 app/controllers/manage/settings_controller.rb
sunrise-core-0.1.5 app/controllers/manage/settings_controller.rb
sunrise-core-0.1.4 app/controllers/manage/settings_controller.rb
sunrise-core-0.1.3 app/controllers/manage/settings_controller.rb
sunrise-core-0.1.2 app/controllers/manage/settings_controller.rb
sunrise-core-0.1.1 app/controllers/manage/settings_controller.rb
sunrise-core-0.1.0 app/controllers/manage/settings_controller.rb