0
Diplomats, I have the following problem:
<div class="input-field">
<%= f.label :kind_id %>
<%= collection_select(:contact, :kind_id, @kind_options_for_select, :id, :description, class: 'input-field') %>
</div>
I’m trying to apply the materialize select class to Rails, but it’s not working. It shows nothing, although it has data.
[BUT I DON’T SEE IT AS THE RIGHT SOLUTION]
<div class="input-field">
<%= collection_select(:contact, :kind_id, @kind_options_for_select, :id, :description, { prompt: "Choose a Kind" }, { class: 'browser-default' }) %>
</div>
This class: 'browser-default' applies an effect that would not be the same as the standard form, but the combo appears with the data.
Can you show the result of this? and the generated HTML?
– Luiz Carvalho
Change your answer to the answer field, not the question field.
– pmargreff