Class UserSessionsController
In: app/controllers/user_sessions_controller.rb
Parent: ApplicationController

Methods

create   destroy   new   normal   openid  

Public Instance methods

[Source]

    # File app/controllers/user_sessions_controller.rb, line 39
39:   def create
40:     @user_session = UserSession.new(params[:user_session])
41:     good_result = false
42:     @user_session.save do |result|
43:       if result
44:         good_result = true
45:         if session[:invitation].nil?
46:           flash.now[:notice] = t 'c.user_sessions.logged_in'
47:           shift_return_url
48:           redirect_to_return_url_or_default(user_url(@user_session.user))
49:         else
50:           flash.now[:notice] = t 'c.user_sessions.logged_in_accept_invitation'
51:           redirect_to edit_invitation_url(session[:invitation])
52:         end
53:       end
54:     end
55:     if !good_result
56:       if !@user_session.openid_identifier.nil?
57:         @selected = "openid"
58:       end
59:       render :action => 'new' 
60:     end
61:   end

[Source]

    # File app/controllers/user_sessions_controller.rb, line 63
63:   def destroy
64:     self.current_user_session.destroy
65:     flash[:notice] = t 'c.user_sessions.logged_out'
66:     redirect_to_return_url_or_default
67:   end

Crud-methods

[Source]

    # File app/controllers/user_sessions_controller.rb, line 28
28:   def new
29:     @selected = params[:selected]
30:     @user_session = UserSession.new
31:     respond_to do |format|
32:       format.html
33:       format.js do
34:         select_body(@selected)
35:       end
36:     end
37:   end

Tabbed methods

[Source]

    # File app/controllers/user_sessions_controller.rb, line 71
71:   def normal
72:     render_ajax_body :partial => 'method.html.erb',
73:         :locals => {:selected => @selected}
74:   end
openid()

Alias for normal

[Validate]