title: How to remove dots from formated numbers
body: <p>I am building a Rails 3.2.14 app and in the view of this app I am using the jQuery plugin <a href="http://plentz.github.io/jquery-maskmoney/" rel="nofollow">http://plentz.github.io/jquery-maskmoney/</a> for formatting input fields.</p>
  
  <p>This works very good but before I save to the database I want to remove all the dots.</p>
  
  <p>This is the value coming in from the form:</p>
  
  <p>12.345</p>
  
  <p>I need it to be like this before saving:</p>
  
  <p>12345</p>
  
  <p>How can I do this?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I tried this:</p>
  
  <pre><code>def fixed_rate_cents=(value)
    super value.gsub(/\./mi, '')
  end
  </code></pre>
  
  <p>But then I get:</p>
  
  <pre><code>ActiveRecord::UnknownAttributeError - unknown attribute: fixed_rate_cents:
  </code></pre>