Hello there, I would like to ask you if is possible to show data, which I''ve to saved in /public/my_dir_for_data. If I try to display an image from this directory, I get "Routing error". Probably when I would to saved the data to root of my application, e.g. /my_data, everything will be ok... but I like this structure of RoR application and I will be glad, if I could to use the directory in in /public... Exist any way, how to do? (and simultaneously security?) -- 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-/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
2011-Mar-16 13:51 UTC
Re: Can I show the data stored in public directory?
On Mar 16, 12:59 pm, Manny 777 <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hello there, > I would like to ask you if is possible to show data, which I''ve to > saved in /public/my_dir_for_data. > > If I try to display an image from this directory, I get "Routing error". > Probably when I would to saved the data to root of my application, e.g. > /my_data, everything will be ok... but I like this structure of RoR > application and I will be glad, if I could to use the directory in in > /public... >How are you trying to access stuff? if you''ve got /public/my_dir/foo.png then that should be available at http://myapp.com/my_dir/foo.png Fred> Exist any way, how to do? (and simultaneously security?) > > -- > 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.