In Rails 2, I know several plugins for enums, such as act_as_enumeration and enumerate_by, but they do not seem to be supported or updated for Rails 3. Preferably, the solution would store the enumeration in memory, not a database for performance, but really any method was would be useful since it can always be cached.
I found an enumerated_attribute that claims to work with Rails 3, but to be honest, I don't like the API and was hoping for another good solution.
(Sorry for linking to only one plugin, but it will not allow me to send more than one link until I get a higher reputation)
ruby-on-rails-3
Jon dean
source share