dodgyboz
2008-Apr-04 15:31 UTC
how do I display an image from a rails app in another site?
I have a rails app with some images uploaded with file_column the url of one of the images is http://soccertackle/image/image/189/supertramp-thumb.jpg. When I type this into a browsers address bar I can see the image. However when I try to display this image on another site using HTML <img src="http://soccertackle/image/image/189/supertramp-thumb.jpg" /> no image is displayed. does this have something to do with the public directory? I would be very grateful if anyone can give me any advise. Thank you. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Mike Nicholaides
2008-Apr-12 21:37 UTC
Re: how do I display an image from a rails app in another si
Your problem might be hotlink protection. If the server hosting the image sees that the HTTP referral is another site, it may ignore the request. -- 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 -~----------~----~----~----~------~----~------~--~---