title: adding size option to file_field tag in rails
body: <p><strong>ANSWERED</strong></p>
  
  <p>I actually found the answer while formulating the question but I'm posting it any way since some might find this useful(as said here: <a href="https://meta.stackexchange.com/questions/49922/should-i-continue-adding-a-question-if-i-have-found-the-answer-myself">https://meta.stackexchange.com/questions/49922/should-i-continue-adding-a-question-if-i-have-found-the-answer-myself</a>)</p>
  
  <p>I'm having trouble adding size to a file field in ROR3. Here was my syntax:</p>
  
  <pre><code>= f.file_field :file, :size =&gt; "11"
  </code></pre>
  
  <p>this doesnt appear but creates an file input field with this:</p>
  
  <pre><code>&lt;input type="file" name="soap_test_zip_file[file]" id="soap_test_zip_file_file"&gt;
  </code></pre>
  
  <p>now I KNOW I made it work before so I looked into some old code and found this:</p>
  
  <pre><code>= file_field_tag :file, :size =&gt; 11
  </code></pre>
  
  <p>which outputs this:</p>
  
  <pre><code>&lt;input type="file" size="11" name="file" id="file"&gt;
  </code></pre>
  
  <p>which gives me the correct size, but the wrong file id and name. So I tried this:</p>
  
  <pre><code>&lt;input type="file" size="11" name="soap_test_file_file" id="soap_test_file_file"&gt;
  </code></pre>
  
  <p>which gives me the RIGHT ID, but the WRONG NAME. Question is how do I reproduce that file_field but with the size?</p>
  
  <p>I looked into this answer by Ryan Bigg btw: <a href="https://stackoverflow.com/questions/4756636/problem-showing-the-size-attribute-for-a-file-field-using-ruby-on-rails-3/4756758#4756758">Problem showing the &#39;size&#39; attribute for a &#39;file_field&#39; using Ruby on Rails 3</a></p>
  
  <p>and he's saying it's a cross browser thing that they render file fields differently. That is the case, but I would like to render a short file field IF the browser can handle it. </p>