Closed jcampb closed 13 years ago
You need to provide an empty options
hash before you can specify options for the html_options
hash. The method signature for the select
method in Rails is
<%= f.select(method, choices, options = {}, html_options = {}) %>
I enhance it with a label
option, so it becomes
<%= f.select(method, label, choices, options = {}, html_options = {}) %>
I'm closing this, since this isn't something that's been altered or broken by my gem (best I can tell). Please let me know if this doesn't fix your issue, so I can reopen and investigate.
Great thank you! Sorry noob mistake
Maybe I'm missing something...but when I pass class or disabled attributes to the select option, they don't get passed through to the form.
I checked and the attributes do get passed to text_fields
Any ideas on how to include this?