Hello. I''m writing an application that uses images stored in the same server but outside of the application directory. I have tried many things but nothing worked and found nothing really useful anywhere. What can I do so the image_tag helper finds the images I need? Thanks a lot. Pepe --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
By default only the public directory is exposed to the web. If you have content living outside of this place you to somehow expose it in the web scope. You might make a symlink, or make a other virtual host for the images and designate this with asset_host. Christian On Sep 13, 7:52 pm, pepe <P...-gUAqH5+0sKL6V6G2DxALlg@public.gmane.org> wrote:> Hello. > > I''m writing an application that uses images stored in the same server > but outside of the application directory. I have tried many things but > nothing worked and found nothing really useful anywhere. > > What can I do so the image_tag helper finds the images I need? > > Thanks a lot. > > Pepe--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks for the tip. I just tried it but unfortunately I got: the symlink() function is unimplemented on this machine I''m working on a Windows machine. Thanks anyway. On Sep 13, 7:32 pm, Christian Rishøj <christ...-xVFlH9Wu1uCsTnJN9+BGXg@public.gmane.org> wrote:> By default only the public directory is exposed to the web. If you > have content living outside of this place you to somehow expose it in > the web scope. You might make a symlink, or make a other virtual host > for the images and designate this with asset_host. > > Christian > > On Sep 13, 7:52 pm, pepe <P...-gUAqH5+0sKL6V6G2DxALlg@public.gmane.org> wrote: > > > Hello. > > > I''m writing an application that uses images stored in the same server > > but outside of the application directory. I have tried many things but > > nothing worked and found nothing really useful anywhere. > > > What can I do so the image_tag helper finds the images I need? > > > Thanks a lot. > > > Pepe--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---