Currently, I am dealing with a select field setup in the following way:
<%= f.select(:avaliador_id) do %>
<% @usuarios_array.each do |u| %>
<%= content_tag(:option, u.first, value: u.last) %>
<% end %>
<% end %>
My query is related to adding a css class (specifically Bootstrap's form-control) to this select menu. Can anyone guide me on how to achieve this?
Your help is much appreciated.
Please note that I came across a solution for a similar question, which doesn't involve an each loop. However, in my scenario, I have a loop and struggle to apply the css class as intended.