From: Ohad Lutzky Date: 2006-09-05T21:58:26+09:00 Subject: Re: Enum Paolo, so beautiful it makes me weep. Thanks a bunch :) I ended up going for a redundant combo solution, in case I wanted to use more than one way: class Project ... statuses.each_with_index do |_status, i| define_method("#{_status.to_s}?") do self.status == i end end def status_is(sym) statuses[self.status] == sym end ... end ...and using humanize for the form. Logan: Thanks, but that won't give me numerical values like I want (I want the indices stored in mysql, this is a rails app). I can see how to apply that to my case though. -- Posted via http://www.ruby-forum.com/.