I want to have class variables that are used for static choice arrays for select boxes (ie CAR_MAKE = [''GM'',''Toyota'',''Ford'',.....]). I think the best place to put these are with the model class but then how are they specified with migrations ? --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
augustlilleaas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jan-22 02:27 UTC
Re: class variables with migrations
You could also define these constants in config/environment.rb On Jan 21, 6:03 pm, "john" <John.Staff2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I want to have class variables that are used for static choice arrays > for select boxes (ie CAR_MAKE = [''GM'',''Toyota'',''Ford'',.....]). I think > the best place to put these are with the model class but then how are > they specified with migrations ?--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---