# Setting the default homepage

**URL:** <https://www.ruby-forum.com/t/setting-the-default-homepage/71600>\
**Category:** Rails\
**Created:** [October 10, 2006, 7:53am UTC](https://www.ruby-forum.com/t/setting-the-default-homepage/71600 "2006-10-10T07:53:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stever](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@Stever](https://www.ruby-forum.com/u/Stever)\
**Post date:** [October 10, 2006, 7:53am UTC](https://www.ruby-forum.com/t/setting-the-default-homepage/71600/1 "2006-10-10T07:53:52Z")

</div>

Hello,

Is there a way to set the default homepage? Right now it goes to  
public/index.html, but i want to to go my standard controller  
(/user/index).

Do I set this in my routes.rb file?

---

<div class="post-metadata">

**Author:** ![Stever](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@Stever](https://www.ruby-forum.com/u/Stever)\
**Post date:** [October 10, 2006, 7:55am UTC](https://www.ruby-forum.com/t/setting-the-default-homepage/71600/2 "2006-10-10T07:55:52Z")

</div>

yes

---

<div class="post-metadata">

**Author:** ![Stever](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@Stever](https://www.ruby-forum.com/u/Stever)\
**Post date:** [October 10, 2006, 8:17am UTC](https://www.ruby-forum.com/t/setting-the-default-homepage/71600/3 "2006-10-10T08:17:53Z")

</div>

On 10/9/06, Stever [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is there a way to set the default homepage? Right now it goes to  
> public/index.html, but i want to to go my standard controller  
> (/user/index).
> 
> Do I set this in my routes.rb file?

Remove public/index.html and set a default route in config/routes.rb

jeremy

---

<div class="post-metadata">

**Author:** ![Stever](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@Stever](https://www.ruby-forum.com/u/Stever)\
**Post date:** [October 10, 2006, 9:09am UTC](https://www.ruby-forum.com/t/setting-the-default-homepage/71600/4 "2006-10-10T09:09:56Z")

</div>

I am putting this for the benefit of anyone reading this post. My  
solution to the problem was to add this line at the bottom of my  
routes.rb file:  
map.connect ‘’, :controller =\> “user”

This translates to: convert any domain without a specific directory to  
the default action on controller “user”.
