Try fixing db:seed:backer

This commit is contained in:
Raphael 2010-10-28 18:01:57 -07:00
parent 3fc5651e9d
commit 83f8cbbb5c

View file

@ -22,10 +22,10 @@ def create
:username => username,
:password => "#{username+backer_info[backer_number]['pin'].to_s}",
:password_confirmation => "#{username+backer_info[backer_number]['pin'].to_s}",
:person => Person.new(
:profile => Profile.new( :first_name => backer_info[backer_number]['given_name'], :last_name => backer_info[backer_number]['family_name'],
:person => {
:profile => { :first_name => backer_info[backer_number]['given_name'], :last_name => backer_info[backer_number]['family_name'],
:image_url => "http://#{username}.joindiaspora.com/images/user/#{username}.jpg")
))
}}
user.save
user.person.save!