This tutorial I read provides this option:
has_attached_file :photo, :default_url => "/:class/:attachment/missing_:style.png"
I’m not sure what /:class/:attachment/missing_:style.png is. Is that the url location of where your default image is? Why are they symbols? Am I supposed to fill them in with something?
default_urlindicates the fallback image that it’ll go look for to return if there is no actual attached image.Much like Rails routing, the symbols are tokens indicating where things are going to be dropped in, so that you can have for instance a small, medium, and large fallback image. See the RDoc page under “instance methods” for specifically what it’ll dropping in in each case.