[Rails] Re: Store HTML select option value

2010-02-05 Thread Vincent P
Thanks all. Now I have the confidence to move forward. On Feb 5, 7:55 am, Matt Jones wrote: > On Feb 4, 10:06 pm,VincentP wrote: > > > > > > > In my app, each user may have one of the 30 predefined occupations. > > Each occupation is a string of about 30 characters.  Should I: > > >   a.  store

[Rails] Re: Store HTML select option value

2010-02-05 Thread Matt Jones
On Feb 4, 10:06 pm, Vincent P wrote: > In my app, each user may have one of the 30 predefined occupations. > Each occupation is a string of about 30 characters.  Should I: > >   a.  store this list of occupations in a mysql table and make > occupation_id a foreign key in the User model?  OR >  

[Rails] Re: Store HTML select option value

2010-02-05 Thread Sharagoz --
I agree, option A is better. Maintaining a hardcoded array of 30 cells is cumbersome and less flexible. -- 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 rubyo