thank you. Just had a look at it. Whenever you load data into objects in the controller (which gets received by the view), how do you stop the first element from being selected by default when you load the page?
In relation to the example in http://pullmonkey.com/2008/3/30/dynamic-select-boxes-ruby-on-rails/, assume @artists has the following values: "Jimi Hendrix", "Prince", "Kenny Wayne Shepherd" and "Jonny Lang". Now, when the index.html.erb page loads and builds the form, it's the case that the first entry, "Jimi Hendrix" will be preselected. How do you stop that? Would you add an "empty" /nil element? Sorry, I'm from the Perl world and am getting myself into Rails so I might not know the syntax of how to do certain things. Thank you On Oct 7, 11:06 pm, Patrick Doyle <[email protected]> wrote: > I learned how to create dynamic select boxes by reading > > http://pullmonkey.com/2008/3/30/dynamic-select-boxes-ruby-on-rails/ > > --wpd --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

