Forum: Ruby on Rails RE: generating select lists from collections

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8b0e4e141e1880d27b9c3879c1d5739a?d=identicon&s=25 jemminger (Guest)
on 2005-11-12 12:49
(Received via mailing list)
[solved]
poking through the docs, looks like collection_select will do it
572d168c7be087765b380de41c3cdcd0?d=identicon&s=25 ponch (Guest)
on 2005-11-12 14:00
(Received via mailing list)
Collection_select will do it, but it won't let you use selected_value.

This is the problem I'm currently stuck on.
Dcb532b5a20e28ebc9621efd070bb659?d=identicon&s=25 williamtaft (Guest)
on 2006-04-22 01:45
ponch wrote:
> Collection_select will do it, but it won't let you use selected_value.
>
> This is the problem I'm currently stuck on.

Check out
http://wiki.rubyonrails.org/rails/pages/HowtoUseFo...
It has an example showing you how to do that.
This topic is locked and can not be replied to.