Rails3-enum-support is a project mainly written in Ruby, it's free.
Provides rudimentary support for model enums in Rails 3.
== Rails 3 / Enum Support
Provides rudimentary enum support for Rails 3 model classes.
== Getting Started
At this point, you can use your enumeration just as you would with any other attribute you specify: yum = IceCream.new yum.flavour = :chocolate yum.flavour # returns :chocolate
Validation is also performed when attempting to save a model instance. Setting an enum attribute to a value not in the initial set will render the instance invalid.