Ok, it seems is if I missed this:
http://scottstuff.net/blog/articles/2006/07/01/sqlite-3-and-ruby-finally-working-on-os-x
I already had swig installed, but maybe it was installed after
sqlite3-ruby, so I reinstalled sqlite3-ruby, and the correct id is
returned.
On Oct 12, 10:22 am, "Nithin"
<axy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> What works:
>
> * it finds the object if it exists
> * it creates an object if it doesn''t exist
>
> What doesn''t work:
>
> * the object that it returns, if it has to create the object, has an
> id of 0, instead of the proper id of the newly created model
>
> I''m not sure if it is only confined to SQLite, since I
don''t have MySQL
> on my dev box. Has anyone run into this problem?
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---