Hi I have a ruby regex I made usinig Rubular http://rubular.com/r/RRc8twB6NL which is meant to check for a decimal 10.00 for pricing. I get it to work on Rubular, but in my application this code does not work:
validates_format_of :price, :with=>/^([0-9]{1,}\.{0,}[0-9]{0,2})$/
Thanks for any help