I created a select with form builder , but it does not render all content inside it
def select_box(name, value, select_options = {}, html_options = {})
content_tag :div, class: class_name do
label_content = html_options.delete(:label)
content = [
content_tag(:span, data: {init: "select"} do
button(nil, type: "button") do
content_tag(:span, "")
end
select(name, value, select_options, html_options)
end
]
labelize_input! name, content, label_content.html_safe unless label_content.nil?
content.join.html_safe
end
end