Sha256: 529eec8d9817e69c7dc30868ae00d2e1b07f67184df4b0cc074fd725d4114a36

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 Bytes

Contents

class Spud::Admin::SettingsController < Spud::Admin::ApplicationController
	layout 'spud/admin/detail'
	add_breadcrumb "Settings", :spud_admin_settings_path
	def index
		@spud_settings = SpudSetting.all
	end

	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
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
spud_core-0.4.0 app/controllers/spud/admin/settings_controller.rb
spud_admin-0.2.0 app/controllers/spud/admin/settings_controller.rb
spud_admin-0.1.0 app/controllers/spud/admin/settings_controller.rb