# Where does index.html (home) fit into RoR?

**URL:** <https://www.ruby-forum.com/t/where-does-index-html-home-fit-into-ror/159132>\
**Category:** Rails\
**Created:** [February 1, 2009, 2:09am UTC](https://www.ruby-forum.com/t/where-does-index-html-home-fit-into-ror/159132 "2009-02-01T02:09:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bloodsample](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9e8a1a/32.png) [@bloodsample](https://www.ruby-forum.com/u/bloodsample)\
**Post date:** [February 1, 2009, 2:09am UTC](https://www.ruby-forum.com/t/where-does-index-html-home-fit-into-ror/159132/1 "2009-02-01T02:09:00Z")

</div>

The page that loads when no controller name is given in the URL is the  
public/index.html page (eg: [http://localhost:3000/](http://localhost:3000/))

Now this is a pure HTML page so I cannot use any link\_to tags or yield  
tags, etc.

My navigation bar is in my application layout  
(app/views/layouts/application.html.erb). This is what provides the  
ability to navigate.

So how do I access this layout if the home page that loads is index.html  
which has no reference to any of my rails views?

Basically I want to know how to create a “home” page with rails (without  
always having to type controller/action in the URL.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![bloodsample](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9e8a1a/32.png) [@bloodsample](https://www.ruby-forum.com/u/bloodsample)\
**Post date:** [February 1, 2009, 2:18am UTC](https://www.ruby-forum.com/t/where-does-index-html-home-fit-into-ror/159132/2 "2009-02-01T02:18:35Z")

</div>

On Sat, Jan 31, 2009 at 5:09 PM, Nebs P.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Basically I want to know how to create a “home” page with rails (without  
> always having to type controller/action in the URL.

And remarkably, on the default Rails “home” page are three points  
under “Getting started”, the last being

1. Set up a default route and remove or rename this file

You might want to look at – i.e., read the comments in – that file.

## HTH,

Hassan S. ------------------------ removed\_email\_address@domain.invalid
