Asked and answered. Looked through the Paperclip source and found the default_url parameter. Thanks to Thoughtbot :-)
/Erik On 2 Aug, 19:52, Erik Lindblad <e...@aldm.se> wrote: > Hi > > 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 > > ErikLindblad --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---