[LRUG] Prices and Precision

Dan Webb dan at danwebb.net
Sun Nov 18 05:44:49 PST 2007

Ive been working on and off on a money plugin for Rails that's pretty
well developed now.  It's got currency conversion, reliable maths and
support for active record money fields.  Its not really public but if
you want to have a look then:


I use it in nearly all of my projects.

On 11/18/07, Ed Davey <ed at veryreal.co.uk> wrote:
> >
> > What's the best way to store prices in a Ruby (Rails) app?  What's the
> > best SQL type for mySQL?
> >
> I've been storing prices in pence as integers and using Brad Folkens
> Model Formatter:
> http://brad.folkens.com/formatting-data-in-rails-models
> to display and enter prices in £2.99 format.
> This is working well for me so far...
> ED
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org

Dan Webb

aim: danwrong123
skype: danwrong

More information about the Chat mailing list