Image Problem using /public

Hi everyone,
I’m having some funky errors with my images on my rails app. When I am
at the index page of my “compare” controller, the images work great
(used a layout). However, when I go to any action in that controller (in
my case compare/aircards) all the images just go to X’s!! All of the
images are stored in public/images (I’m using InstantRails, btw). I have
the console open (ruby script/server) and it says
“ActionController::UnknownAction (No action responded to images):” .
What is going on? Do I have to set something differently?

Thank you,

  • Jeff M.

I’d have to assume that you are not using #image_tag. You’re probably
doing img src=“images/yourimage”. Put a leading slash, or use
image_tag to make sure that the path is always right.

Jason

You are exactly right! Thank you for your help, simply putting in that
slash made all the difference.

Thanks again,

  • Jeff