Activeadmin formtastic偏序

时间:2015-04-29 06:25:00

标签: ruby-on-rails activeadmin formtastic

在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在部分之间进行渲染?

0 个答案:

没有答案