# Renaming routes.rb

**URL:** <https://www.ruby-forum.com/t/renaming-routes-rb/143485>\
**Category:** Rails\
**Created:** [July 19, 2008, 5:32am UTC](https://www.ruby-forum.com/t/renaming-routes-rb/143485 "2008-07-19T05:32:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![central\_tex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b5ac83/32.png) [@central\_tex](https://www.ruby-forum.com/u/central_tex)\
**Post date:** [July 19, 2008, 5:32am UTC](https://www.ruby-forum.com/t/renaming-routes-rb/143485/1 "2008-07-19T05:32:30Z")

</div>

When you create a new rails app the default home page says to rename  
routes.rb. I tried this, but when I run script/console or script/server  
I get an error saying the routes.rb file can’t be found. If you rename  
this file is there an environment variable holding the location  
elsewhere in the application?

---

<div class="post-metadata">

**Author:** ![central\_tex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b5ac83/32.png) [@central\_tex](https://www.ruby-forum.com/u/central_tex)\
**Post date:** [July 19, 2008, 6:04am UTC](https://www.ruby-forum.com/t/renaming-routes-rb/143485/2 "2008-07-19T06:04:53Z")

</div>

Quincy C. wrote:

> When you create a new rails app the default home page says to rename  
> routes.rb. I tried this, but when I run script/console or script/server  
> I get an error saying the routes.rb file can’t be found. If you rename  
> this file is there an environment variable holding the location  
> elsewhere in the application?

Read it again. You are expected to edit a line inside routes.rb, and  
point that  
to your landing page - the first action of your first controller.

---

<div class="post-metadata">

**Author:** ![central\_tex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b5ac83/32.png) [@central\_tex](https://www.ruby-forum.com/u/central_tex)\
**Post date:** [July 19, 2008, 6:36am UTC](https://www.ruby-forum.com/t/renaming-routes-rb/143485/3 "2008-07-19T06:36:39Z")

</div>

Phlip wrote:

> Quincy C. wrote:
> 
> > When you create a new rails app the default home page says to rename  
> > routes.rb. I tried this, but when I run script/console or script/server  
> > I get an error saying the routes.rb file can’t be found. If you rename  
> > this file is there an environment variable holding the location  
> > elsewhere in the application?
> 
> Read it again. You are expected to edit a line inside routes.rb, and  
> point that  
> to your landing page - the first action of your first controller.

Yes, your right. I read too much into it.
