Sha256: 69206ba5437a6cd7f5c7e775f9ca6d7f92fd29e7a2b06e1bc658840d32048aa8

Contents?: true

Size: 630 Bytes

Versions: 3

Compression:

Stored size: 630 Bytes

Contents

class Manage::SettingsController < Manage::BaseController
  # 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

3 entries across 3 versions & 1 rubygems

Version Path
freeberry-0.2.7 app/controllers/manage/settings_controller.rb
freeberry-0.2.6 app/controllers/manage/settings_controller.rb
freeberry-0.2.5 app/controllers/manage/settings_controller.rb