Can't Figure Out How to Configure Default Profile Image for Paperclip
<p>I was reading past Stack posts on this issue, but I was still unsuccessful in getting default profile images to work.</p>

<p>In my app/models folder, I have a file called "profile.rb" that looks like this:</p>

<pre><code>class Profile &lt; ActiveRecord::Base
  belongs_to :user

  # From Paperclip GitHub README
  has_attached_file :avatar, styles: { medium: "300x300&gt;", thumb: "100x100&gt;" }, default_url: "/images/:style/missing.jpg"
  validates_attachment_content_type :avatar, content_type: /\Aimage\/.*\Z/
end
</code></pre>

<p>From what I understand, it's basically saying that styles is some sort of a placeholder for medium and thumb. So "thumb" and "medium" are supposed to be folders inside of assets/images. The default_url states that the default image will be found in :styles which is in the "thumb" or "medium" folder. I made a folder called "thumb" in my images directory and then placed the "missing.jpg" file in it. In my show.html.erb I have the line</p>

<pre><code>&lt;%= image_tag @user.profile.avatar.url %&gt;
</code></pre>

<p>which works in showing the image when a user has uploaded an image, but shows up as "missing" if they don't upload an image. </p>

<p>I also noticed that in public/profiles/avatars/000/000/004 directory that there were 3 folders called "medium," "original," and "thumb." I assumed that this is where I needed to place my "missing.jpg," but that didn't work either so I'm a bit confused as to what to do.</p>

<p>According to <a href="https://stackoverflow.com/questions/25249252/paperclip-where-to-place-the-missing-png-default-image">this stack post</a>, Paperclip is looking for images in the public directory so I am assuming this is the right place, but I still don't understand why it won't work.</p>