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 in rails, but it's not working. It shows nothing, although it has data.
[SOLUTION BUT I DO NOT SEE HOW TO CORRECT IT]
<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' it applies an effect that would not be the same as the default form, but the combo with the data appears.