On 28 August 2010 10:44, Zack Nathan <[email protected]> wrote: > Colin Law wrote: >> On 27 August 2010 09:38, Zack Nathan <[email protected]> wrote: >>> I just realised i still get the error even with that code! HELP!!! :P >> >> Please quote the message you are replying to. Which code? >> >> Please post the code again and the error along with which line the >> error is on. First though have a look yourself and try and work it >> out. >> >> 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 -- 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.

