How do I return an image inside the respond_to do |format| block?
I already have the image fully assembled (i.e. no ugly assembling from blogs) and at a particular URL (because it's in the public folder), I just need to be able to return that image for a particular other URL query.
For example, the image is in
public/cars/userid/car_id/random_name.JPG
and I want to be able to serve up that image when a user goes to
http://mywebsite.com/car_id.JPG
because it's prohibitive to have the user have to know the userid and random_name. I have the url public/cars/userid/car_id/random_name.JPG already as @car.public_filename, because @car is a attachment_fu object.