Hi everyone, I am now building a form, and for a field i want to give users only a small set of predetermined values. I implemented it as follows: in the controller i created an array @ptypes = ["type a", "type b", ...] in the _form <%= collection_select :purchase, :product, @ptypes, :to_s, :to_s %> I am new to rails, and would like to know if there is a standard way for doing this. Thanks. -fouad --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
