title: Ruby on Rails - Paperclip Error
body: <p>For reference I have been following this tutorial: <a href="https://devcenter.heroku.com/articles/paperclip-s3" rel="noreferrer">https://devcenter.heroku.com/articles/paperclip-s3</a> Except I am in localhost testing right now, so I installed the Figaro gem and placed my S3 info in application.yml.</p>
  
  <p>Using Rails v4, Cocaine v0.5.3, and Paperclip v4.1.0 (unsure if any other gem version numbers need to be mentioned).</p>
  
  <p>I have a model called SubmissionDetails, where in its new.html.erb I am trying to upload a jpg to a column called attachment. Here is the relevant model code:</p>
  
  <pre><code>has_attached_file :attachment, styles: {
  thumb: '200x200&gt;',
  large: '800x800&gt;'
  }
  
  validates_attachment_content_type :attachment, content_type: /\Aimage\/.*\Z/
  </code></pre>
  
  <p>When I try to upload a jpg, it returns back to the form with the following error message:</p>
  
  <pre><code>1 error prohibited this submission_detail from being saved:
  Attachment translation missing:
  en.activerecord.errors.models.submission_detail.attributes.attachment.spoofed_media_type
  </code></pre>
  
  <p>I understand some of the error, that text to display this error message is missing from my en.yml file, but what about that spoofed media type part?</p>
  
  <p>This shows up in my server console, not sure if this is relevant:</p>
  
  <pre><code>[paperclip] Content Type Spoof: Filename header.jpg (["image/jpeg"]), content type discovered from file command: . See documentation to allow this combination.
  (0.0ms)  rollback transaction
  </code></pre>