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 <[email protected] <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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
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.


Reply via email to