ruby on rails - Activeadmin formtastic partial ordering -
in activeadmin form, have following code:
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" }
the problem t.input
renders after partials instead of in order.
how t.input render in between partials?
Comments
Post a Comment