price formatting resolved. <%= "%.2f" % book.purchase_price %>