Cooking conversion table / library?

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.

Thanks for your tips!

I don't know of a library, but get yourself a copy of The Joy of Cooking
and write one!

:smiley:

Ben

···

On Thu, Oct 05, 2006, routinization@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.

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

···

On Oct 5, 12:08 am, Ben Bleything <b...@bleything.net> 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!

:smiley:

Ben

Kevin wrote:

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 -
I just started playing with this. Extremely cool! Very well done. I
see you even released a new version today.

Thanks for your efforts!

Whoa, sweet! Good to know!

Ben

···

On Thu, Oct 05, 2006, Kevin wrote:

The ruby-units gem can handle all sorts of unit conversions. I'm
pretty sure the standard cooking measurements are pre-defined.

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

Yes, but are those American or English cups? American, I'm
guessing, but English cup sizes are different (236ml in American,
250ml in British)

Hadley

hadley wickham wrote:

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

Yes, but are those American or English cups? American, I'm
guessing, but English cup sizes are different (236ml in American,
250ml in British)

The floz was different between US and Imperial in the first place.

···

--
John W. Kennedy
"The blind rulers of Logres
Nourished the land on a fallacy of rational virtue."
   -- Charles Williams. "Taliessin through Logres: Prelude"