2009/10/12 Aman Gupta <[email protected]>:
> MyModel.create(model.values.merge(:id => 2))
or MyModel.create( model.values.reject{|n|n==:id} ) to let the
database set the :id
Clive
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sequel-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/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---