Also, check out Chad Fowler's excellent book "Rails Recipes". It's
covered in there very throughly.

Michael