Rails Form Builder is not rendering all content

1

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
    
asked by anonymous 21.08.2015 / 19:25

0 answers