My Chosen plugin select menu is present but it still says “Select Some Option” when I want it to prompt to say “Select at least one category or create it”.
<%= f.select :category_ids, Category.all.collect {|c| [c.name, c.id]}, {:prompt => "Select at least one category...."}, { :multiple => true, :class => "category-select" } %>
The prompt is in the list and not when it being directly viewed like a placeholder. How can I get it this way?
UPDATE
When I use prompt it actually places it in the drop down and can be selected as a category so that’s wrong right there.
It appears for rails you have to change the 2 lines
getAttribute("data-placeholder")?toplaceholderinstead so, simply change the two lines: