Class UserController
In: app/controllers/user_controller.rb
Parent: ApplicationController

Methods

index   register  

Public Instance methods

[Source]

   # File app/controllers/user_controller.rb, line 3
3:         def index 
4:                 @title = "RailsSpace User Hub"
5:         end

[Source]

    # File app/controllers/user_controller.rb, line 7
 7:         def register 
 8:                 @title = "Register" 
 9:                 if request.post? and params[:user]
10:                         @user = User.new(params[:user]) 
11:                         if @user.save 
12:                                 flash[:notice] = "User #{@user.screen_name} created!" 
13:                                 redirect_to :action => "index"
14:                         end 
15:                 end 
16:         end

[Validate]