+
+ def confirm
+ @user = User.find_by_token(params[:confirm_string])
+ if @user && @user.active == 0
+ @user.active = true
+ @user.save
+ flash[:notice] = 'Confirmed your account'
+ redirect_to :action => 'login'
+ else
+ flash[:notice] = 'Something went wrong confirming that user'
+ end
+ end
+