# Why do I get the DEFAULT rails page

**URL:** <https://www.ruby-forum.com/t/why-do-i-get-the-default-rails-page/193226>\
**Category:** Rails\
**Created:** [August 13, 2010, 3:26pm UTC](https://www.ruby-forum.com/t/why-do-i-get-the-default-rails-page/193226 "2010-08-13T15:26:58Z")\
**Posts on this page:** 8\
**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:** [August 13, 2010, 3:26pm UTC](https://www.ruby-forum.com/t/why-do-i-get-the-default-rails-page/193226/1 "2010-08-13T15:26:58Z")

</div>

I’m following the tutorial here:

> **[Getting Started with Rails — Ruby on Rails Guides](https://edgeguides.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...

And have set the route as:

root :to =\> “home#index”

But, always get the DEFAULT Rails page.

What could I be 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:** [August 13, 2010, 3:35pm UTC](https://www.ruby-forum.com/t/why-do-i-get-the-default-rails-page/193226/2 "2010-08-13T15:35:30Z")

</div>

On Fri, Aug 13, 2010 at 03:26:58PM +0200, Abder-Rahman A. wrote:

> I’m following the tutorial here:  
> [Getting Started with Rails — Ruby on Rails Guides](http://edgeguides.rubyonrails.org/getting_started.html)
> 
> And have set the route as:
> 
> root :to =\> “home#index”
> 
> But, always get the DEFAULT Rails page.
> 
> What could I be missing?

You didn’t delete/rename public/index.html, at a guess.

---

<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:** [August 13, 2010, 3:59pm UTC](https://www.ruby-forum.com/t/why-do-i-get-the-default-rails-page/193226/3 "2010-08-13T15:59:22Z")

</div>

Daniel B. wrote:

> On Fri, Aug 13, 2010 at 03:26:58PM +0200, Abder-Rahman A. wrote:
> 
> > I’m following the tutorial here:  
> > [Getting Started with Rails — Ruby on Rails Guides](http://edgeguides.rubyonrails.org/getting_started.html)
> > 
> > And have set the route as:
> > 
> > root :to =\> “home#index”
> > 
> > But, always get the DEFAULT Rails page.
> > 
> > What could I be missing?
> 
> You didn’t delete/rename public/index.html, at a guess.

I actually did delete public/index.html.

---

<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:** [August 13, 2010, 4:49pm UTC](https://www.ruby-forum.com/t/why-do-i-get-the-default-rails-page/193226/4 "2010-08-13T16:49:50Z")

</div>

On 13 August 2010 14:59, Abder-Rahman A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > What could I be missing?
> > 
> > You didn’t delete/rename public/index.html, at a guess.
> 
> I actually did delete public/index.html.

What default rails page are you getting? If it looks remarkably like  
public/index.html used to look before you deleted it, and you really  
have deleted it, then perhaps the browser has cached it or something.  
Quickly make a new rails app and have a look at index.html if forget  
what it looked like. Look carefully in public and make sure you have  
not left something lying around. I presume you have re-started  
everything and still see the problem.

Colin

---

<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:** [August 13, 2010, 10:58pm UTC](https://www.ruby-forum.com/t/why-do-i-get-the-default-rails-page/193226/5 "2010-08-13T22:58:12Z")

</div>

Thanks a lot everyone.

It seems that it may be a cache problem. I deleted the application and  
created it from scratch and now it works fine.

---

<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:** [August 13, 2010, 11:05pm UTC](https://www.ruby-forum.com/t/why-do-i-get-the-default-rails-page/193226/6 "2010-08-13T23:05:43Z")

</div>

On 13 August 2010 21:58, Abder-Rahman A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Thanks a lot everyone.
> 
> It seems that it may be a cache problem. I deleted the application and  
> created it from scratch and now it works fine.

I will remember that solution. Next time I want to clear the cache I  
know I just have to delete the app and recreate it from scratch.  
Excellent.

Colin

---

<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:** [August 13, 2010, 6:38pm UTC](https://www.ruby-forum.com/t/why-do-i-get-the-default-rails-page/193226/7 "2010-08-13T18:38:44Z")

</div>

On Fri, Aug 13, 2010 at 09:59, Abder-Rahman A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I actually did delete public/index.html.

Colin suggests that your browser may be caching it; there may be  
additional levels of caching going on. AFAIK Rails doesn’t  
automagically wanted-but-deleted default pages (like how Windows will  
restore many missing files), but perhaps either it does now, or some  
bizarre gem you’ve installed does so.

Check if it’s there now. If so, don’t delete it again, but edit it,  
and make it completely different. Then see what your browser shows  
you. If it’s still the old version, press Shift while refreshing the  
page (^R, F5, or whatever your browser uses). If it’s STILL the old  
one, then let’s worry about your routing. Problems like these often  
turn out to be something trivial, while the geeks are hunting down the  
hairy sort of problem they LIKE to solve… 🙂

-Dave

–  
Specialization is for insects. -RAH | Have Pun, Will Babble! -me  
Programming Blog: [http://codosaur.us](http://codosaur.us) | Work: [http://davearonson.com](http://davearonson.com)  
Leadership Blog: [http://dare2xl.com](http://dare2xl.com) | Play: [http://davearonson.net](http://davearonson.net)

- 
  - 
    - 
      - 
        - WATCH THIS SPACE \* \* \* \* \* | Ruby: [http://mars.groupsite.com](http://mars.groupsite.com)

---

<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:** [August 13, 2010, 11:12pm UTC](https://www.ruby-forum.com/t/why-do-i-get-the-default-rails-page/193226/8 "2010-08-13T23:12:14Z")

</div>

Colin L. wrote:

> On 13 August 2010 21:58, Abder-Rahman A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Thanks a lot everyone.
> > 
> > It seems that it may be a cache problem. I deleted the application and  
> > created it from scratch and now it works fine.
> 
> I will remember that solution. Next time I want to clear the cache I  
> know I just have to delete the app and recreate it from scratch.  
> Excellent.
> 
> Colin

Colin,

I really didn’t clear the cache, but deleted the application from  
scratch. I suggested that the cache is the issue since I did the exact  
same steps and it worked in the second time.
