在ActiveAdmin表单中,我有以下代码:
render partial: "admin/lesson/recurring_adder", locals: { lesson: lesson, added_classes: "recurring-settings" }
t.input(:schedule,
:as => :select,
input_html: { class: 'recurring_select recurring-settings'},
wrapper_html: { class: "recurring-settings" },
label: "Repeat Rule",
collection: options_for_select( options, selected)
)
render partial: "admin/lesson_recurring/recurring_form", locals: { lesson_recurring: lesson_recurring, added_classes: "recurring-settings" }
render partial: "admin/lesson_recurring/affect_scope", locals: { lesson_recurring: lesson_recurring, added_classes: "recurring-settings" }
问题是t.input
在所有部分之后呈现而不是按顺序呈现。
如何让t.input在部分之间进行渲染?