Re: [Rails] modeling values with units of measure

2012-01-17 Thread Dustin Frazier
I appreciate the reply about to implement the Unit and Measure classes (as you call them). I'm already pretty clear on how I want to handle the values with units themselves, my questions is more about how best to use these Measure instances in a Rails model: storing "unit-ed" values for many di

[Rails] modeling values with units of measure

2012-01-17 Thread Dustin Frazier
I'm working on a Rails 3 app that requires a few fields that can be given in multiple units of measure, e.g. miles, kilometers, etc. for distances, miles-per-hour, meters-per-second, etc. for speeds, and so on. I'm curious how others have modeled these types of compound datatypes in Rails. Some