Sha256: 0ea06484e31206d325036ab66b20cb030d2076c77b98c57105acd6fedd4663cb

Contents?: true

Size: 668 Bytes

Versions: 2

Compression:

Stored size: 668 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 Freeberry::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

2 entries across 2 versions & 1 rubygems

Version Path
freeberry-0.3.0 app/controllers/manage/settings_controller.rb
freeberry-0.2.9 app/controllers/manage/settings_controller.rb