Sorts out a problem with the description field and adding users.
This commit is contained in:
parent
6644f115c9
commit
b2515ec75e
1 changed files with 2 additions and 1 deletions
|
@ -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 :-)<br>Please note that you won't be able to login until you've received and confirmed your email address."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue