Create a flexible, localized, Ruby-on-Rails list-of-values
Posted
by Craig
on Stack Overflow
See other posts from Stack Overflow
or by Craig
Published on 2010-03-08T21:50:54Z
Indexed on
2010/03/08
21:51 UTC
Read the original article
Hit count: 374
I have a list of values (Beginner, Intermediate, Advanced, Fluent, Native) that I would like to:
- act as the model for a SELECT list
- act as a model to convert ids to values in a HTML table
- use in multiple controllers and views
- keep in an order that preserves the business rules (ordered by skill level)
- localize at some point in the future
Is there a way of implementing this list to address all or most of my needs?
© Stack Overflow or respective owner