could please anyone help me with this issue? http://stackoverflow.com/questions/13237954/object-not-found-in-production thanks, enrico -- · Enrico Stano · · twitter @enricostano · skype ocirneonats -- 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 https://groups.google.com/groups/opt_out.
so... I just realized that relative links like <a href="/media/etcetc">I''m a relative link</a> generate URLs like www.mysite.it/media/etcetc while they should generate www.mysite.it/copisteria/media/etcetc This happens only for relative links, for example Rails'' link_to methodjust works fine. Any hint? I was following the Passenger official guide to deploy a Rails 3.x to a subfolder. Thank you Il giorno lunedì 5 novembre 2012 19:19:36 UTC+1, enrico stano ha scritto:> > could please anyone help me with this issue? > > http://stackoverflow.com/questions/13237954/object-not-found-in-production > > thanks, > > enrico > > -- > · Enrico Stano > · > · twitter @enricostano > · skype ocirneonats > >-- 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. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/_6cKv7-b9OcJ. For more options, visit https://groups.google.com/groups/opt_out.
On 7 November 2012 13:27, enrico stano <enricostn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> so... > > I just realized that relative links like > > <a href="/media/etcetc">I''m a relative link</a> > >If it starts with a / is is not a relative link, it is an absolute link. Try <a href="media/etcetc">I''m a relative link</a> -- 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 https://groups.google.com/groups/opt_out.
Hi, I understand your point, but it doesn''t apply with things like DragonFly @model.file.url that resolve in /media/etcetc But it seems an Apache/Passenger issue while deploying to a subdirectory... deploying to Heroku just works fine I''ve changed a bit the issue on SO http://stackoverflow.com/questions/13237954/wrong-urls-from-relative-links-deploying-to-a-subdirectory many thanks for your help! Il giorno mercoledì 7 novembre 2012 15:11:24 UTC+1, Peter Hickman ha scritto:> > On 7 November 2012 13:27, enrico stano <enri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>>wrote: > >> so... >> >> I just realized that relative links like >> >> <a href="/media/etcetc">I''m a relative link</a> >> >> > If it starts with a / is is not a relative link, it is an absolute link. > Try > > <a href="media/etcetc">I''m a relative link</a> > >-- 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. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/z_ifzYo0zdEJ. For more options, visit https://groups.google.com/groups/opt_out.