From: Kevin Date: 2006-10-05T20:35:09+09:00 Subject: Re: Cooking conversion table / library? On Oct 5, 12:08 am, Ben Bleything wrote: > On Thu, Oct 05, 2006, routinizat...@gmail.com wrote: > > I'm starting a Rails project with a cooking recipe focus. I was > > wondering if anyone knows of a pre-existing library that will handle > > the classic dry and liquid cooking conversions such as teaspoons to > > tablespoons, tablespoons to cups, fluid ounces to pints, ounces to > > pounds, etc. Something like what Rails' ActiveSupport does with number > > extensions would be nice, but this beggar isn't a chooser.I don't know of a library, but get yourself a copy of The Joy of Cooking > and write one! > > :D > > Ben The ruby-units gem can handle all sorts of unit conversions. I'm pretty sure the standard cooking measurements are pre-defined. '1 floz'.to 'cups' => 0.125 cu _Kevin www.sciwerks.com