Adding a CSS class to the options tag inside a select wrapper w/ Rails
        Posted  
        
            by Christian
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Christian
        
        
        
        Published on 2010-04-12T14:48:32Z
        Indexed on 
            2010/04/12
            14:53 UTC
        
        
        Read the original article
        Hit count: 334
        
ruby-on-rails
What if I need to add a class to the options tag?
testme1
I haven't been able to do this.
This is what I have
<%= select(:user, :goalstext, Bodytarget.all.collect {|b| [ b.name, b.id ] }, {"class", "test"}, :class => "selected", :class => "selected") %>
© Stack Overflow or respective owner