Class PrefsProfilesController
In: app/controllers/prefs_profiles_controller.rb
Parent: ApplicationController

Methods

select  

Public Instance methods

Misc

[Source]

    # File app/controllers/prefs_profiles_controller.rb, line 19
19:   def select
20:     if params[:id] and !self.current_user.anonymous?
21:       self.current_user.default_prefs_profile = PrefsProfile.find(params[:id])
22:       self.current_user.save
23:       session[:just_selected_prefs_profile] = true
24:     elsif params[:peer_group_id]
25:       session[:current_peer_group_id] = params[:peer_group_id]
26:     elsif params[:user_group_id]
27:       session[:current_user_group_id] = params[:user_group_id]
28:     end
29:     redirect_to :back
30:   end

[Validate]