Hi!!! I wanna to show in my web page a picture, but this picture I can´t move it from the folder where it is. I know that in Rails you have to have the picture in the images folder, but I wanna to know if it is possible to show a picture from another folder different. Thanks!! -- Posted via http://www.ruby-forum.com/. --0022158df84f668f21047d3447e2 Content-Type: text/plain; charset=ISO-8859-1 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. --0022158df84f668f21047d3447e2--
On Jan 15, 1:49 pm, Guille San <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi!!! > I wanna to show in my web page a picture, but this picture I can´t move > it from the folder where it is. I know that in Rails you have to have > the picture in the images folder, but I wanna to know if it is possible > to show a picture from another folder different. >public/images is the usual place to put images but anywhere within the public folder will do (since that is what your document root is). With extra configuration you can probably get your webserver to serve images from other locations too. Fred> Thanks!! > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung wrote:> On Jan 15, 1:49 pm, Guille San <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> Hi!!! >> I wanna to show in my web page a picture, but this picture I can´t move >> it from the folder where it is. I know that in Rails you have to have >> the picture in the images folder, but I wanna to know if it is possible >> to show a picture from another folder different. >> > public/images is the usual place to put images but anywhere within the > public folder will do (since that is what your document root is). With > extra configuration you can probably get your webserver to serve > images from other locations too. > > FredOk, but I´m newie in RoR, how can I do that?? Thanks -- Posted via http://www.ruby-forum.com/. --000325558e16ddc845047d3480cb Content-Type: text/plain; charset=ISO-8859-1 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. --000325558e16ddc845047d3480cb--
Sure it is possible and you have many options how to reach it. The easiest way is probably to make a filesystem link from Rails image folder to your unmovable folder. Like (provided you are in your rails public/images directory) ln -s /your/unmovable and you can reach your images like this image_tag ''unmovable/something.png'' cheers Jakub On Jan 15, 2:49 pm, Guille San <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi!!! > I wanna to show in my web page a picture, but this picture I can´t move > it from the folder where it is. I know that in Rails you have to have > the picture in the images folder, but I wanna to know if it is possible > to show a picture from another folder different. > > Thanks!! > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.