Link_to problem


having a problem with link_to. My rail app is running in a sub directory
and when i use link_to for a file it does work, because link_to does not
place the subdirectory path in the url, but if i go to another page
first, then go back to the same page where the link_to is displayed it
will display it properly and it will work. Really strange, can not seem
to figure it out

BTW one thing i do notice on my server is that when my app goes displays
the front page its in this format

instead of

If i put the / at the end manually after the front page is displayed,
everything works fine, but i cant seem to figure out how to make it do
that automatically?