Phoenix Rising
2011-Jul-28 06:22 UTC
Can you suggest a fixtures replacement for a MongoDB-based Rails 3.1 project?
Hey guys, I''m taking the plunge and building a new app on Rails 3.1 (asset pipelining ROCKS) and using MongoDB as the backend. Does anyone know of any good fixtures replacements that work with MongoDB and Rails 3.1? I could really use some advice there. Also, a follow-up question: the two ODMs I''ve seen for MongoDB are Mongoid and MongoMapper. I''m hoping to keep as much ActiveRecord-like functionality as possible in my application, so which would be "closer" to AR? After looking at both briefly I''m thinking that would be MongoMapper, but as I said - I only had time to look *briefly* so far - I''d prefer hearing a more experienced opinion. Additionally, do they both perform roughly equally as well, or is one known for being more or less efficient than the other? Are there other ODMs I should consider using? Thanks guys. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-Jul-28 21:35 UTC
Re: Can you suggest a fixtures replacement for a MongoDB-based Rails 3.1 project?
On Jul 28, 7:22 am, Phoenix Rising <polarisris...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hey guys, > > I''m taking the plunge and building a new app on Rails 3.1 (asset > pipelining ROCKS) and using MongoDB as the backend. Does anyone know > of any good fixtures replacements that work with MongoDB and Rails > 3.1? I could really use some advice there. >I''ve used factory girl with mongomapper quite happily Fred> Also, a follow-up question: the two ODMs I''ve seen for MongoDB are > Mongoid and MongoMapper. I''m hoping to keep as much ActiveRecord-like > functionality as possible in my application, so which would be > "closer" to AR? After looking at both briefly I''m thinking that would > be MongoMapper, but as I said - I only had time to look *briefly* so > far - I''d prefer hearing a more experienced opinion. Additionally, do > they both perform roughly equally as well, or is one known for being > more or less efficient than the other? Are there other ODMs I should > consider using? > > Thanks guys.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
David Grandinetti
2011-Jul-28 22:40 UTC
Re: Re: Can you suggest a fixtures replacement for a MongoDB-based Rails 3.1 project?
sorry, the gem is fabrication, not fabricator. On Thu, Jul 28, 2011 at 11:38 PM, David Grandinetti <dbgrandi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''ve been using fabricator and mongoid. No problems so far. > > On Thu, Jul 28, 2011 at 10:35 PM, Frederick Cheung > <frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> >> On Jul 28, 7:22 am, Phoenix Rising <polarisris...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> Hey guys, >>> >>> I''m taking the plunge and building a new app on Rails 3.1 (asset >>> pipelining ROCKS) and using MongoDB as the backend. Does anyone know >>> of any good fixtures replacements that work with MongoDB and Rails >>> 3.1? I could really use some advice there. >>> >> >> I''ve used factory girl with mongomapper quite happily >> >> Fred >>> Also, a follow-up question: the two ODMs I''ve seen for MongoDB are >>> Mongoid and MongoMapper. I''m hoping to keep as much ActiveRecord-like >>> functionality as possible in my application, so which would be >>> "closer" to AR? After looking at both briefly I''m thinking that would >>> be MongoMapper, but as I said - I only had time to look *briefly* so >>> far - I''d prefer hearing a more experienced opinion. Additionally, do >>> they both perform roughly equally as well, or is one known for being >>> more or less efficient than the other? Are there other ODMs I should >>> consider using? >>> >>> Thanks guys. >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> > > > > -- > David Grandinetti > us: +1 315 569 2594 > uk: +44 079 9929 3558 >-- David Grandinetti us: +1 315 569 2594 uk: +44 079 9929 3558 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
dbkbali
2011-Jul-29 03:26 UTC
Re: Can you suggest a fixtures replacement for a MongoDB-based Rails 3.1 project?
I am using Mongoid and factory girl works fine. Havent used mongomapper, but Mongoid seems to provide the flexibility of using active record type relationships, with ongoing active support and upgrades to the orm. Regards David Krett -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/rXT9wMXk0fQJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.