Colin Law wrote: > On 28 August 2010 12:23, Zack Nathan <li...@ruby-forum.com> wrote: >>> presume you have looked at collection_select docs and googled for >>> Colin >> >> Thanks. Yeah i need a collection_select (a drop down menu in html) that >> will have the serving name as the name and also as the value. Now I dont >> know how I would do this in ruby, but I know how I would do this in >> other languages. That is my question. > > So have you looked at the docs and googled for examples of > collection_select and made sure you understand them, as I suggested? > > Colin
of course! I have found this snippet of code and im trying to get it to work: <%= select("group_users", "group_id", @groups.collect {|p| [ p.group.name, p.group.id ] }, { :include_blank => true }) %> But i cant seem to get it to work at the moment. -- Posted via http://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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.