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 Miller -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On Feb 18, 2008 1:20 PM, Jeff Miller <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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 Miller > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You are exactly right! Thank you for your help, simply putting in that slash made all the difference. Thanks again, - Jeff -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---