[LRUG] Matching database tables through Ruby

Matthew Westcott matthew.westcott at torchbox.com
Tue Aug 14 09:03:56 PDT 2007


On 14 Aug 2007, at 16:52, Marcus Roberts wrote:

> I'm working on a piece of code at the moment that has raised a
> problem I've seen a couple of times.
> This is for a Rails app, but comes up generally.
>
> I have a tasks table, where a task has a status field, indicating if
> it's "Open", "In progress" or "Closed"

I've not tried it myself, but it sounds like the acts_as_enumerated  
plugin could be what you're looking for:
http://wiki.rubyonrails.org/rails/pages/Acts+As+Enumerated+Plugin

- Matt



More information about the Chat mailing list