# How to make dynamic index page

**URL:** <https://www.ruby-forum.com/t/how-to-make-dynamic-index-page/105048>\
**Category:** Rails\
**Created:** [May 25, 2007, 9:15am UTC](https://www.ruby-forum.com/t/how-to-make-dynamic-index-page/105048 "2007-05-25T09:15:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/cc9497/32.png) [@anjan](https://www.ruby-forum.com/u/anjan)\
**Post date:** [May 25, 2007, 9:15am UTC](https://www.ruby-forum.com/t/how-to-make-dynamic-index-page/105048/1 "2007-05-25T09:15:36Z")

</div>

I m new with ruby so I have query regarding index.html page. In Ruby if  
i want dynamic index page in public folder where data is coming  
dynamically then in index.html page how can i display tht. I cant do tht  
in html page.

Is there any other way to make index page dynamic.

So plz help me out to solve this problem.

Thanks  
Anjan.

---

<div class="post-metadata">

**Author:** ![anjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/cc9497/32.png) [@anjan](https://www.ruby-forum.com/u/anjan)\
**Post date:** [May 25, 2007, 10:08am UTC](https://www.ruby-forum.com/t/how-to-make-dynamic-index-page/105048/2 "2007-05-25T10:08:50Z")

</div>

Anjan Doshi wrote:

> I m new with ruby so I have query regarding index.html page. In Ruby if  
> i want dynamic index page in public folder where data is coming  
> dynamically then in index.html page how can i display tht. I cant do tht  
> in html page.
> 
> Is there any other way to make index page dynamic.

You simply remove the index.html file from the public folder. Then you  
map a route to the empty url like:

map.connect ‘’, :controller =\> ‘some\_controller’, :action =\> ‘index’

–  
Cheers,

- Jacob A.

---

<div class="post-metadata">

**Author:** ![anjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/cc9497/32.png) [@anjan](https://www.ruby-forum.com/u/anjan)\
**Post date:** [May 25, 2007, 11:17am UTC](https://www.ruby-forum.com/t/how-to-make-dynamic-index-page/105048/3 "2007-05-25T11:17:24Z")

</div>

Jacob A. wrote:

> Anjan Doshi wrote:
> 
> > I m new with ruby so I have query regarding index.html page. In Ruby if  
> > i want dynamic index page in public folder where data is coming  
> > dynamically then in index.html page how can i display tht. I cant do tht  
> > in html page.
> > 
> > Is there any other way to make index page dynamic.
> 
> You simply remove the index.html file from the public folder. Then you  
> map a route to the empty url like:
> 
> map.connect ‘’, :controller =\> ‘some\_controller’, :action =\> ‘index’
> 
> –  
> Cheers,
> 
> - Jacob A.

Thanks a lot  
it worked
