Hi my friends, just a little more problem: config.columns[:precio].options[:format] = "0.0"
whit this in the controller show and store the price correctly, look at this http://iv.pl/images/44752455745612763935.jpg But i like some help to validate the format to store and just aceppt two digits and i have to do this, because when i write this "125.115" it store and show me in this way "125.115" but in the Data Base just show me "125.11" but this is give me a little problem when i refresh the page, it make this: "125.115" and put "125.12" Did you see?? it after refresh the page, sum up one cent more and dont have to do that. And i was think about use this validates_format_of But i have not find how do this, because in this way i can validate just 2 digits after point like this "0.00" -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.
