Reputation: 9355
Usually, adding an ID tag at the end of a rails form helper, does the trick. However, this does not seem to be working for select boxes. What am I doing wrong?
<%= form_for(@song) do |f| %>
<%= f.select :category, [['Pop', 1], ['Rap', 2]] , :id=>"choose-category"%>
<% end %>
^The ID is not getting set here properly, what am I doing wrong?
Thanks.
Upvotes: 2
Views: 3557