# How to go back to the Home page

**URL:** <https://www.ruby-forum.com/t/how-to-go-back-to-the-home-page/150685>\
**Category:** Rails\
**Created:** [October 11, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/how-to-go-back-to-the-home-page/150685 "2008-10-11T13:47:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsn1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Post date:** [October 11, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/how-to-go-back-to-the-home-page/150685/1 "2008-10-11T13:47:55Z")

</div>

Hi all

My home page is called index.hml and it is located under the Public  
folder. When I am creating a new record in a controller I type:

- [http://mysite/mycontroler/new](http://mysite/mycontroler/new)

when this page opens if I click in the menu Home, it redirects me to

- [http://mysite/mycontroler/new](http://mysite/mycontroler/new)

instead of “index.html” in the public folder.

Please advice

thanks

---

<div class="post-metadata">

**Author:** ![jsn1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Post date:** [October 11, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/how-to-go-back-to-the-home-page/150685/2 "2008-10-11T17:19:42Z")

</div>

I need to link\_to my home page index.html located inside the public  
folder

---

<div class="post-metadata">

**Author:** ![jsn1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Post date:** [October 11, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/how-to-go-back-to-the-home-page/150685/3 "2008-10-11T17:43:14Z")

</div>

Basically, you need to delete index.html in public folder before  
starting to develop.  
We don’t use it. It’s just there to see if Rails is running fine and  
show “Welcome aboard” message.

---

<div class="post-metadata">

**Author:** ![jsn1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Post date:** [October 12, 2008, 12:37am UTC](https://www.ruby-forum.com/t/how-to-go-back-to-the-home-page/150685/4 "2008-10-12T00:37:48Z")

</div>

By default, Rails directs to the index.html file in the public folder  
unless you add map.root :controller =\> “something”… in the routes.rb  
file  
so if you haven’t changed that, all you have to do is edit the  
index.html file the way you want it. if the app automatically  
redirects to the controller, check in your routes.rb file.

hope that helps  
–BC

On Oct 11, 11:19 am, Pepe S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
