On Mar 7, 6:41 pm, Jack o'Shanter <[email protected]> wrote:

> # View
> <%= collection_select :thread, 'forum_id', @forums, :id, :name %>
>
> Just wondering if there's a more natural (and undocumented) way of doing
> it...

In a small experiment,

collection_select :thread, 'forum_id', @forums, :id, :name, :prompt =>
true, :include_blank => 'All'

seems to work for me. If that doesn't work out, i'd use select instead
of collection_select - collection_select is trying to make one use
case of select easier, but if you're jumping through hoops then it's
no longer easier than just using select.

Fred

> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en.

Reply via email to