Disabled option tags using form helpers

Hi,

I've updated my patch to allow disabled option tags to be generated using the form helpers. Currently, the helpers do not allow you to specify a disabled options. This is useful in cases such as disabling out of stock sizes on a product select.

http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/837-patch-specify-the-disabled-attribute-for-option-tags

Does any body have any feedback?

Many thanks,

Tekin Suleyman

I've further tweaked my patch to the form helpers to allow you to
disable option tags.

As well as passing in a value or array of values, you can now specify
a Proc when dealing with collections to identify which options should
be disabled (thanks for the suggestion Frederick), e.g:

options_from_collection_for_select( @product_variants, :id, :name,
nil, lambda {|p| p.out_of_stock?} )

ticket: http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/837

Feedback appreciated.

Tekin Suleyman