简体   繁体   English

适用于mongoid的Formtastic替代品

[英]Formtastic alternative that works well with mongoid

Do you know any "semantic" rails gems for form generation which integrates well with the mongoid gem ? 你知道任何形式生成的“语义”轨道宝石,它与mongoid宝石很好地结合在一起吗? By integration I mean, correct automatic association based on the rules in the models (referenced_in, references_many). 通过集成,我的意思是,根据模型中的规则(referenced_in,references_many)更正自动关联。

I tried simple_form but it seems to fail ... 我试过simple_form但它似乎失败了......

Cheers 干杯

Formtastic works OK with some tinkering, although not everything will be automatic. Formtastic可以通过一些修补工作,但并非一切都是自动的。 I've got a small tutorial app showing some of the things you have to do to get Formtastic to work with Mongoid: 我有一个小的教程应用程序,展示了让Formtastic与Mongoid一起工作所需要做的一些事情:

http://github.com/bowsersenior/formtastic_with_mongoid_tutorial http://github.com/bowsersenior/formtastic_with_mongoid_tutorial

使用Mongoid ,simple_form对我来说很好

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM