On Friday, December 26, 2014 2:31:27 PM UTC-8, Rafael Mendonça França wrote:

> Does not the collection_select work o this way? I know it has a 
> label_method that you can pass name to get the same behavior, and if I'm 
> not wrong disabled can accept a proc.
>
You're right—that could have saved me some time yesterday!

It might still make sense to make collection_select()'s :disabled (and 
:selected) treat a Symbol as a method to call on each object in the 
collection, instead of requiring you to write a proc. Would there be 
interest in a more limited patch that did that, or should I just buckle 
down and write a proc?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to