I have a nested form with the following field:
<%= f.label :size %><br />
<%= f.collection_select :size, Video::SIZE, :to_s, :to_s, :include_blank => true, :class => "sizefield" %>
As you can see, I’ve assigned the class, “sizefield”, to this field, but for some reason, my app is not recognizing it. What am I doing wrong here?
Rails functions that allow two terminal hashes get confused if you don’t specify the boundaries of those hashes exactly. For example:
You’re not separating the
optionsfrom thehtml_options. Try this: