Provide missing image


I have an application where people can upload avatar-like images to
the site. When I show the images I want to show a placeholder image if
no image has been uploaded for that user.

I was thinking of overloading the image_tag helper to check for
existance and provide :default => “path/to/default/image” for the
image to show in case the primary one does not exist.

So my questions are: Has anyone done something similar before and if
so is there a gem or similar for public use?

Thanks in advance

Erik L.

Asked and answered. Looked through the Paperclip source and found the
default_url parameter. Thanks to Thoughtbot :slight_smile: