1 class UserController < ApplicationController
4 @user = User.new(params[:user])
8 flash[:notice] = 'Users was successfully created.'
9 Notifier::deliver_signup_confirm(@user)
10 redirect_to :action => 'login'
12 render :action => 'new'
22 @user = User.find_by_token(params[:confirm_string])
23 if @user && @user.active == 0
26 flash[:notice] = 'Confirmed your account'
27 redirect_to :action => 'login'
29 flash[:notice] = 'Something went wrong confirming that user'