What\'s the best Ruby/Rails way to allow users to use decimals or commas when entering a number into a form? In other words, I would like the user be able to enter 2,000.99
You can try this:
def price=(val) val = val.gsub(',', '') super end