Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def create
- self.current_user = User.authenticate(params[:login], params[:password])
- if logged_in?
- redirect_to request.env["HTTP_REFERER"] || '/'
- else
- # keep the registration form happy
- @user = User.new
- render :action => 'new'
- end
- end
Add Comment
Please, Sign In to add comment