Linking to dynamically added html pages

Hello All,

    In my application new HTML pages are added into a folder by some

service running in the background. I’ve constructed the links for these
pages and I also display them on my ruby application’s home page. I’ve
also taken care that each time a new page is added, the webpage gets
updated too with addition of a new link. I used the href tag in the ruby
file (Views) for my application. But no browser currently supports
hyperlinking to files in local filesystem, for e.g. C:\abc.html.

                I use the default Mongrel server. I was wondering if

there is any way I can put them into some server folder so that instead
of having a relative path like C:\abc.html I can have something like
http://www.localhost.com:3000/myproject/abc.html. Also I cannot restart
my server each time some new html file is added. Appreciate all your
help.

Thank You

On Wed, Nov 4, 2009 at 3:57 PM, Avnish Malik
[email protected] wrote:

   In my application new HTML pages are added into a folder by some

service running in the background.

               I use the default Mongrel server. I was wondering if

there is any way I can put them into some server folder so that instead
of having a relative path like C:\abc.html I can have something like
http://www.localhost.com:3000/myproject/abc.html.

Of course. Did you even try? Anything in /public is accessible, so
create your ‘myproject’ directory there and put the files in it.


Hassan S. ------------------------ [email protected]
twitter: @hassan