title: Ruby on Rails: how to set size of number_field
body: <p>Could someone show me how to set the size of <code>number_field</code> in rails? I tried this but it doesn't work:</p>
  
  <pre><code>&lt;%= f.number_field :status, size: "10", ...
  </code></pre>
  
  <p>but this works:</p>
  
  <pre><code>&lt;%= f.text_field :name, size: "10", ...
  </code></pre>
  
  <p>Thanks</p>