On 27. mai. 2009, at 14.49, Telmo wrote:

> I gave that a try, however I seem to be having some issues with
> ActiveRecord (btw, the user model doesn't seem to have a Terms of Use
> must be accepted).
> I am replicating the steps that script/create_admin uses, is this
> script out of date?


Yes, the create_admin script is in fact outdated as it doesn't provide  
the terms of use. This is a virtual attribute that doesn't exist in  
the database; just on creation of User objects in memory.

If you change line 16 in the script to

        user = User.new :password => password, :password_confirmation =>  
password, :email => email, :terms_of_use => '1'

it should work out fine. I've committed the change now, it should  
appear in the mainline later today.
Thanks for the feedback!

Regards,
- Marius


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Gitorious" 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/gitorious?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to