我一直在試圖在我的rails應用程序中使用accepts_nested_attributes_for
實現動態多模式表單。我一直在關注Eloy Duran的complex-forms example,它顯示了2級的實現,但我一直試圖將其擴展到3個級別。是否支持accepts_nested_attributes_for
3級表格?任何人都可以告訴我如何擴展示例應用程序?在rails中使用accept_nested_attributes_for的三級嵌套表單
我已經得到了JavaScript部分工作(不總是工作的原因)爲第三級,但我不能保存第三級對象(S)。它是通過爲每個屬性PARAM NAME是:
greatgrandparent[grandparent_attributes][0][parent_attributes][0][object_attributes][1249277008434][attribute]
凡greatgrandparent是對象的形式爲,祖父母是第一電平,父是第二電平,並且對象是第三電平(一個我試圖保存)。
謝謝,我很欣賞任何指針。
你是一個生命的救星。 – Anon 2009-08-05 03:33:02