Can you suggest a fixtures replacement for a MongoDB-based Rails 3.1 project?

53 views
Skip to first unread message

Phoenix Rising

unread,
Jul 28, 2011, 2:22:51 AM7/28/11
to Ruby on Rails: Talk
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.

Frederick Cheung

unread,
Jul 28, 2011, 5:35:13 PM7/28/11
to Ruby on Rails: Talk


On Jul 28, 7:22 am, Phoenix Rising <polarisris...@gmail.com> 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

dbkbali

unread,
Jul 28, 2011, 11:26:05 PM7/28/11
to rubyonra...@googlegroups.com
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

David Grandinetti

unread,
Jul 28, 2011, 6:40:24 PM7/28/11
to rubyonra...@googlegroups.com
sorry, the gem is fabrication, not fabricator.

On Thu, Jul 28, 2011 at 11:38 PM, David Grandinetti <dbgr...@gmail.com> wrote:
> I've been using fabricator and mongoid. No problems so far.

>> --
>> 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 rubyonra...@googlegroups.com.
>> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
>> 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

Reply all
Reply to author
Forward
0 new messages