Number To Currency help

Assuming that you're very early in the process (and that you're using Rails 1.2.x), I'd suggest that you redo the generation with scaffold_resource (which is what you'll get under the name 'scaffold' in Rails 2 anyway).

Usage: script/generate scaffold_resource ModelName [field:type, field:type]

script/generate scaffold_resource Sale sku:string qty:integer 'price:decimal(8,2)' taxable:boolean

(of course, I'm just guessing at some possible column names and types)

This will start you out with a static set of views with individual columns rather than the dynamic ones based on Sale.content_columns. It will be much easier to see how to proceed.

-Rob

Rob Biedenharn http://agileconsultingllc.com
Rob@AgileConsultingLLC.com