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
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---