Class: Spud::Admin::SettingsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Spud::Admin::SettingsController
- Defined in:
- app/controllers/spud/admin/settings_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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 |
#index ⇒ Object
4 5 6 |
# File 'app/controllers/spud/admin/settings_controller.rb', line 4 def index @spud_settings = SpudSetting.all end |