title: How to use an image for buttons in rails
body: <p>I have the following form_for in my rails project that allows a user to upload a file and then click submit. As of now they are standard buttons. I would like to use an icon image for the "choose your file" button. Is there a way to keep the functionality of that button, but instead make it an image that the user can click on to upload their file?</p>
  
  <pre><code>    &lt;%= form_for@user, :url =&gt; users_upload_path, multipart: true, method: :post do |f| %&gt;
      &lt;%= f.file_field :name %&gt; &lt;%= f.submit %&gt;
  </code></pre>
  
  <p>Thanks!</p>