Create a flexible, localized, Ruby-on-Rails list-of-values
- by Craig
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?