take out index, change backer seed, no puts

This commit is contained in:
Raphael 2010-09-15 17:13:17 -07:00
parent 02dda4f0a7
commit bf33313bf9
3 changed files with 1 additions and 3 deletions

View file

@ -14,7 +14,6 @@ class RegistrationsController < Devise::RegistrationsController
user = nil user = nil
flash[:error] = e.message flash[:error] = e.message
end end
puts user
if user if user
#set_flash_message :notice, :signed_up #set_flash_message :notice, :signed_up
flash[:notice] = "You've joined Diaspora!" flash[:notice] = "You've joined Diaspora!"

View file

@ -50,7 +50,6 @@ class User
######## Making things work ######## ######## Making things work ########
key :email, String key :email, String
ensure_index :email
def method_missing(method, *args) def method_missing(method, *args)
self.person.send(method, *args) self.person.send(method, *args)

View file

@ -21,7 +21,7 @@ def create
backer_number = YAML.load_file(Rails.root.join('config','backer_number.yml'))[:seed_number].to_i backer_number = YAML.load_file(Rails.root.join('config','backer_number.yml'))[:seed_number].to_i
# Create seed user # Create seed user
username = backer_info[backer_number]['username'].gsub(/ /,'').downcase username = backer_info[backer_number]['username'].gsub(/ /,'').downcase
user = User.create(:email => "#{username}@#{username}.joindiaspora.com", user = User.instantiate!(:email => "#{username}@#{username}.joindiaspora.com",
:username => username, :username => username,
:password => "#{username+backer_info[backer_number]['pin'].to_s}", :password => "#{username+backer_info[backer_number]['pin'].to_s}",
:password_confirmation => "#{username+backer_info[backer_number]['pin'].to_s}", :password_confirmation => "#{username+backer_info[backer_number]['pin'].to_s}",