On 27. mai. 2009, at 05.10, Telmo wrote: > As you can see I don't get any error, just a false return from the > User.save. Has anyone encountered a similar issue?
There are two methods for saving a record in Rails: #save, which returns whether it was saved and #save! which raises an error if it couldn't be saved. In your case, the latter would probably give you an error like ActiveRecord::RecordInvalid: Validation failed: Login can't be blank, Login is too short (minimum is 3 characters), Login is invalid, Terms of use must be accepted Which means 1) you need to supply a login for the user and 2) the terms of use must be accepted. Set these, and you should be good to go. HTH, - 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 -~----------~----~----~----~------~----~------~--~---
