On Tue, Nov 17, 2009 at 02:41:29PM -0800, Darian Shimy wrote:

> Hard to say without seeing the seeds file, but, this generally happens
> when it fails the validation.  Try using save! instead of save.  That
> will cause a stacktrace which will let you know what was missed.

This was exactly what I needed. Adding:

    User.find_or_create_by_email(
        #stuff
    ).save! 
    
with the right data showed me which validations were failing, and I was
able to fix them. All is now right with the world.

As an added bonus, authlogic is now properly populating the password
fields from cleartext passwords, so I don't even need to pre-populate
:crypted_password anymore. Woohoo!

Thanks for the timely help.

-- 
"Oh, look: rocks!"
        -- Doctor Who, "Destiny of the Daleks"

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=.


Reply via email to