>
> If create returns nil, then how do you figure out why the save failed?
>
> Earle
>

As I mentioned in an earlier post, my suggestion is that one uses create()
when all validations are expected to pass, and new/save in all other cases.

Another way of putting this: create() is supposed to provide a quickie way
to create a saved model instance. If you are checking for errors, it's not
quickie :-)

..tony..

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

Reply via email to