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
--
Posted via http://www.ruby-forum.com/.
On Wed, Nov 4, 2009 at 3:57 PM, Avnish Malik <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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 Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan