Class: Spud::Admin::SettingsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/spud/admin/settings_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



8
9
10
11
12
13
14
# File 'app/controllers/spud/admin/settings_controller.rb', line 8

def create
  @spud_settings = SpudSetting.all
  if params[:spud_settings].blank?
    flash[:error] = "Spud Settings not specified!"
    redirect_to spud_admin_settings_url()
  end
end

#indexObject



4
5
6
# File 'app/controllers/spud/admin/settings_controller.rb', line 4

def index
  @spud_settings = SpudSetting.all
end