Sha256: f3d712c8bc69f67f097e220994beab2577f07ef34f1f56e162eb58559bf76389

Contents?: true

Size: 614 Bytes

Versions: 13

Compression:

Stored size: 614 Bytes

Contents

class Spud::UsersController < Spud::ApplicationController
	before_filter :require_user
	layout 'spud/admin/detail'
	add_breadcrumb "Settings", :spud_settings_path
	def settings
		@page_thumbnail = "spud/admin/users_thumb.png"
		@page_name = "Settings"	
	end

	def update
		@page_thumbnail = "spud/admin/users_thumb.png"
		@page_name = "Settings"	
		if @current_user.update_attributes(params[:spud_user])
			flash[:notice] = "User settings saved successfully."
			redirect_to spud_admin_root_url()
		else
			flash[:error] = "There was an error while saving the user."
			render :action => "settings"
		end
	end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
spud_core-0.7.2 app/controllers/spud/users_controller.rb
spud_core-0.7.1 app/controllers/spud/users_controller.rb
spud_core-0.7.0 app/controllers/spud/users_controller.rb
spud_core-0.6.4 app/controllers/spud/users_controller.rb
spud_core-0.6.2 app/controllers/spud/users_controller.rb
spud_core-0.5.6 app/controllers/spud/users_controller.rb
spud_core-0.5.5 app/controllers/spud/users_controller.rb
spud_core-0.5.2 app/controllers/spud/users_controller.rb
spud_core-0.5.1 app/controllers/spud/users_controller.rb
spud_core-0.5.0 app/controllers/spud/users_controller.rb
spud_core-0.4.0 app/controllers/spud/users_controller.rb
spud_admin-0.2.0 app/controllers/spud/users_controller.rb
spud_admin-0.1.0 app/controllers/spud/users_controller.rb