# It worked the first time, but what is happening now?

**URL:** <https://www.ruby-forum.com/t/it-worked-the-first-time-but-what-is-happening-now/191821>\
**Category:** Rails\
**Created:** [July 19, 2010, 11:48am UTC](https://www.ruby-forum.com/t/it-worked-the-first-time-but-what-is-happening-now/191821 "2010-07-19T11:48:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [July 19, 2010, 11:48am UTC](https://www.ruby-forum.com/t/it-worked-the-first-time-but-what-is-happening-now/191821/1 "2010-07-19T11:48:59Z")

</div>

I was walking through this simple Rails guide:

> **[Getting Started with Rails — Ruby on Rails Guides](https://guides.rubyonrails.org/getting_started.html)**
>
> Getting Started with RailsThis guide covers getting up and running with Ruby on Rails.After reading this guide, you will know: How to install Rails, create a new Rails application, and connect your application to a database. The general layout of a...

I’m concentrating here in the map.root route and having a page to show  
when navigating to [http://localhost:3000](http://localhost:3000) instead of the default one.

I will tell you what I did, and just wonder what I have missed?

> Rails blog  
> cd blog  
> script/generate controller home index

Customized the index.html.erb of “home” and inserted some content (i.e;  
This is the homepage)

Then, removed the index.html.erb in the “public” directory.

After that, in “routes.rb”, I inserted as the “first” line after  
ActionController::Routing::Routes.draw do |map|

map.root :controller =\> “home”

What am I missing?

Thanks.

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [July 19, 2010, 12:03pm UTC](https://www.ruby-forum.com/t/it-worked-the-first-time-but-what-is-happening-now/191821/2 "2010-07-19T12:03:21Z")

</div>

It worked with identical steps. I just logged out from my machine and  
logged in. I don’t know if it was returning a cached page all the time.
