I'm trying to setup the default image for my user's avatars and running into the problem of it not showing up in my view(s). My user.rb
file is setup exactly how its shown on its Github page
has_attached_file :avatar, default_url: "/assets/:style/missing.png"
I also created a paperclip.rb
file inside my initializer
directory with the code below:
Paperclip::Attachment.default_options[:default_url] = "/images/missing.png"
I proceeded to place my png file missing.png
in my assets/images
folder but no luck. I then decided to create an images folder within my public directory, public/images/missing.png
but still got a broken image. With each change I've reset my rails server with no avail. Unlike the posts on here similar to the issue I'm not receiving any errors in particular, just an image not being found . What am I doing wrong?