Does MongoMapper (or any other Mongodb adapter) have a method like “accepts_nested_attributes_for”?

[亡魂溺海] 提交于 2019-12-23 11:48:29

问题


I'm considering using mongodb on a new project, but before delving in, I'd like to know if it supports some key features. I know you don't need migrations, and you can add embedded objects,...but does all that mean it also behaves as if the 'accepts_nested_attributes_for' method is always there?

Do you know of any other killer features that I should be aware of that would sway me for or against MongoDB?

Here's a recent article I'm aware of, and that others may also be interested in:

http://railstips.org/blog/archives/2009/12/18/why-i-think-mongo-is-to-databases-what-rails-was-to-frameworks/


回答1:


Looks like the mongomapper guy is working on a solution to this:

http://groups.google.com/group/mongomapper/browse_thread/thread/e92c35f6e2302687/b9f0860ac83d9b4e?lnk=gst&q=nested#b9f0860ac83d9b4e

http://gist.github.com/275594



来源:https://stackoverflow.com/questions/2076130/does-mongomapper-or-any-other-mongodb-adapter-have-a-method-like-accepts-nest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!