开发者

Mongomapper - bootstrapping techniques

开发者 https://www.devze.com 2022-12-31 09:25 出处:网络
I\'ve just begun creating a rails application using mongomapper for my models. I\'m wondering what solution should I use for bootstrapping my app with it.

I've just begun creating a rails application using mongomapper for my models. I'm wondering what solution should I use for bootstrapping my app with it.

All my previous experience is with ActiveRecord & PostgreSQL, in which I have used several gems for bootstrapping. The one I liked the most开发者_StackOverflow中文版 was bootstrapper (+ factorygirl + faker).

Does anyone know whether these work ok with mongomapper? Can anyone suggest better alternatives? Is there anything obvious I need to know when bootstrapping mongodb?


Factory_girl and faker works fine with MongoMapper.

So you can bootstrap your Rails app in the same way that before. Made some data in your db/seed.rb

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号