From: Shaun McDonald Date: Tue, 8 Jul 2008 13:43:56 +0000 (+0000) Subject: Sorts out a problem with the description field and adding users. X-Git-Tag: live~7740 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/b2515ec75ebb24ee21c1a28b2ea218013a5fde19?hp=6644f115c9064c70273252f69963af8a88334f19 Sorts out a problem with the description field and adding users. --- 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."