From b2515ec75ebb24ee21c1a28b2ea218013a5fde19 Mon Sep 17 00:00:00 2001 From: Shaun McDonald Date: Tue, 8 Jul 2008 13:43:56 +0000 Subject: [PATCH 1/1] Sorts out a problem with the description field and adding users. --- app/controllers/user_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index fd58145c4..f2378f36d 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -14,7 +14,8 @@ class UserController < ApplicationController @user = User.new(params[:user]) @user.data_public = true - + @user.description = "" if @user.description.nil? + if @user.save token = @user.tokens.create flash[:notice] = "User was successfully created. Check your email for a confirmation note, and you\'ll be mapping in no time :-)
Please note that you won't be able to login until you've received and confirmed your email address." -- 2.43.2