Sha256: 3758f85bfee4048f784cfacbd25597619c54d09e033a656b915fc9023320e237

Contents?: true

Size: 283 Bytes

Versions: 1

Compression:

Stored size: 283 Bytes

Contents

class SettingsController < ApplicationController
  load_and_authorize_resource
  
  def show
    @settings = Settings.new
  end
  
  def update
    @settings = Settings.new(params[:settings])
    @settings.save!
    redirect_to settings_path, :notice => "Changes saved"
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
houston-core-0.5.0.beta1 app/controllers/settings_controller.rb