Hi, maybe this helps: http://guides.rubyonrails.org/form_helpers.html#making-select-boxes-with-ease
Regards Marc On 26 Jul., 13:07, Alfredo Bonilla <li...@ruby-forum.com> wrote: > Hi, > > I would like to know the best practice for following situation: > > * For saving DB space, instead of saving a list of string values > ("Implemented", "Non Implemented", "Partially Implemented"), I want to > save an integer value (1, ,2, 3) > > * My doubt is how to manage this situation in terms of: > > > * Show list of values (strings)in a combo > > * Assign selected value to the integer field in the DB > > * Validate value > > * ActiveRecord has any kind of functionality for this? > * Do I use helpers for translating? If this is the solution... how do I > do this? > > Thx in advance > -- > Posted viahttp://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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.