OK, I thought that this patch would have no side effects but I've just realised that some people may be passing selected elements without array brackets. This means that options_for_select(container, selected = nil, disabled = []) will interpret the first as selected and any subsequent ones as disabled. Does anyone have any suggestions?
Also, is there any reason why the disabled attribute is not supported currently? On Aug 16, 11:42 am, Tekin Suleyman <[EMAIL PROTECTED]> wrote: > There's currently no way to set the disabled attribute in options > generated by the form helpers. > > I've created a patch that allows you to specify which values should be > disabled in your options: > > http://rails.lighthouseapp.com/projects/8994/tickets/837-patch-specif... > > Any comments? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
