Colin Law wrote: > On 28 August 2010 10:44, Zack Nathan <[email protected]> wrote: >>> Colin >> >> Its ok, I worked it out late last night, thanks though! But how would I >> put the display name and then the ids into a collection for a >> collection_select menu. Im stuck on this because I only know how to put >> data into a one dimensional array in ruby at the moment. > > You need to be more exlicit about exactly what the problem is. I > presume you have looked at collection_select docs and googled for > examples and have understood those (if you don't understand the > examples then persevere until you do). Find an example that is close > to what you want and try and modify it for your requirement. If you > cannot work out exactly what to do then post the best guess that you > have for the code and explain what is going wrong. If your problem is > a basic Ruby issue then study a good book on Ruby. The Pickaxe book > is generally considered the one to get I think. Also you must know > what html you are trying to generate, if you do not know that then > study up on html. > > 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. Thanks, jakx12. -- 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 [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.

