Is there a built-in way to determine if an asset exists without resorting to File.exists?(File.join(Rails.root, "foo", "bar", "baz")) , and which looks for resource paths.
My application sends and selects images from a remote server in the Resque queue; until we upload the image, I want to serve as a placeholder image. I am currently using File.exists ... but that means hard-coding a path that sucks or looks at configured asset paths. It seems like it should already be, but I can't find it in the docs.
Jim Zajkowski Jul 21 2018-11-21T00: 00Z
source share