ECOLOGY
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0]; Rails 3.2.6; OSX 10.6.8
Question
Having tried many permutations of the following syntax, I have to ask (maybe a stupid question) what is the correct syntax for assigning .css classes to Ruby f.select objects?
<%= f.select :fieldname, options_for_select( [[ t('selector_instruction_string'), ""]] + countries, resource.fieldname), html_options { :class => 'Select_100pct' } %>
See the last line (broken for display).
This syntax (and many similar to it) is either ignored or cannot cause errors (either).
source share