many :left_masthead_menu_groups,
label: "Left masthead menu groups",
action_label: "Add a menu group",
placeholder: "The left masthead doesn't have any menu groups yet." do
select_box :menu_group_id,
options: dep(:menu_groups_list),
label: "Menu group"
end
When submitting the form with a value set in the :menu_group_id select box, the following attributes are posted:
Given the following example
many
block:When submitting the form with a value set in the
:menu_group_id
select box, the following attributes are posted:However, when a value is not selected,
attributes
isnil
. Ideally an empty array would be returned here.