[LRUG] Prices and Precision

David Townsend toonsend at gmail.com
Mon Nov 26 09:08:47 PST 2007


Dan,

Been using your plugin all week, thanks for that. Great to find a
plugin that actually does what it says on the tin and more.  I really
like the implementation and it meant I didn't have to change my schema
to fit it.

David

PS David is not affiliated to Dan in anyway socially, romantically,
genetically or financially.



On 11/18/07, Dan Webb <dan at danwebb.net> wrote:
> 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:
>
> http://svn.danwebb.net/external/rails/plugins/acts_as_money/
>
> 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
> http://www.danwebb.net
>
> aim: danwrong123
> skype: danwrong
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>



More information about the Chat mailing list