# Linking to dynamically added html pages

**URL:** <https://www.ruby-forum.com/t/linking-to-dynamically-added-html-pages/178467>\
**Category:** Rails\
**Created:** [November 5, 2009, 12:57am UTC](https://www.ruby-forum.com/t/linking-to-dynamically-added-html-pages/178467 "2009-11-05T00:57:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![josihovo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/90ced4/32.png) [@josihovo](https://www.ruby-forum.com/u/josihovo)\
**Post date:** [November 5, 2009, 12:57am UTC](https://www.ruby-forum.com/t/linking-to-dynamically-added-html-pages/178467/1 "2009-11-05T00:57:57Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![josihovo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/90ced4/32.png) [@josihovo](https://www.ruby-forum.com/u/josihovo)\
**Post date:** [November 5, 2009, 1:09am UTC](https://www.ruby-forum.com/t/linking-to-dynamically-added-html-pages/178467/2 "2009-11-05T01:09:03Z")

</div>

On Wed, Nov 4, 2009 at 3:57 PM, Avnish Malik  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](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. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan
