Class RegisterController
In: app/controllers/register_controller.rb
Parent: ApplicationController

************************************************************************/

  • SOLUNAS BOOKING ENGINE */
  • ====================== */
  • */
  • Copyright © 2006 by Marc Isemann */
  • sourceforge.net/projects/solunas */
  • */
  • This program is free software. You can redistribute it and/or modify */
  • it under the terms of the GNU General Public License as published by */
  • the Free Software Foundation; either version 2 of the License. */

************************************************************************/

Methods

Public Instance methods

Confirmation page for newly registered users

[Source]

    # File app/controllers/register_controller.rb, line 19
19:   def register_confirmation
20:   end

register a new user

[Source]

    # File app/controllers/register_controller.rb, line 23
23:   def register_user
24: 
25:     if request.get?
26:       @user = User.new
27:       @user_count = User.count
28:     else
29:       @user = User.new(params[:user])
30:       @user.confirmed = "0"
31:       @user.email = params[:user][:email]
32:       @user.homepage = params[:user][:homepage]
33:       @user.premium = params[:user][:premium]
34:       if @user.save
35:         redirect_to(:action => 'register_confirmation')
36:       end
37:     end
38:   end

[Validate]