Sha256: ed4d62228f3337bfd46e744433e220b91d8bd3fb5a90d29a69a19ced44c3fd70

Contents?: true

Size: 623 Bytes

Versions: 3

Compression:

Stored size: 623 Bytes

Contents

# BigDecimal Price #

Did you know that [decimal columns are great for storing prices in Rails apps](http://pragdave.blogs.pragprog.com/pragdave/2006/07/decimal_support.html)?

Well, they are.

This little gem ensures that if you have, say a `price` column on a database, when you call that `price` method on your model, it will come out formatted like a price.

eg.

<%= @item.price %>

will out put `10.90`, even if the decimal value is `10.9`

## Installation ##

Just add this to your gemfile:

    gem 'big_decimal_price'

Lovely.

== Copyright

Copyright (c) 2011 Paul Campbell. See LICENSE.txt for
further details.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
big_decimal_price-0.1.2 README.md
big_decimal_price-0.1.1 README.md
big_decimal_price-0.1.0 README.md