actually you can use cattr_accessor because it comes from ActiveSupport, but you have to explicitly require that file. Rails will do this for you, but other frameworks won't (AFAIK).