# Default rails homepage

**URL:** <https://www.ruby-forum.com/t/default-rails-homepage/141860>\
**Category:** Deployment\
**Created:** [July 1, 2008, 4:49am UTC](https://www.ruby-forum.com/t/default-rails-homepage/141860 "2008-07-01T04:49:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![indigoi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/b3f665/32.png) [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Post date:** [July 1, 2008, 4:49am UTC](https://www.ruby-forum.com/t/default-rails-homepage/141860/1 "2008-07-01T04:49:19Z")

</div>

what is the correct way to set a default homepage with rails? So when a  
user goes to [www.first.snowmaninthesun.com](http://www.first.snowmaninthesun.com) they are automatically  
redirected to [www.first.snowmaaninthesun.com/first/view](http://www.first.snowmaaninthesun.com/first/view) instead of  
seeing “Welcome aboard Youâ€™re riding Ruby on Rails”! ??

i have tried setting my routes to

map.connect ‘’ :controller=\> ‘first’, :action =\> ‘view’

but this doesn’t seem to do anything.

\*links are to a demo rails app, no advertising or anything inappropriate

---

<div class="post-metadata">

**Author:** ![indigoi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/b3f665/32.png) [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Post date:** [July 1, 2008, 4:54am UTC](https://www.ruby-forum.com/t/default-rails-homepage/141860/2 "2008-07-01T04:54:09Z")

</div>

Remove the index.html from the public directory of your application.  
That’s the “this file” in step 3 of the welcome page.

On Mon, Jun 30, 2008 at 7:49 PM, Richard S.

---

<div class="post-metadata">

**Author:** ![indigoi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/b3f665/32.png) [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Post date:** [July 1, 2008, 5:01am UTC](https://www.ruby-forum.com/t/default-rails-homepage/141860/3 "2008-07-01T05:01:23Z")

</div>

Richard S. wrote:

> what is the correct way to set a default homepage with rails? So when a  
> user goes to [www.first.snowmaninthesun.com](http://www.first.snowmaninthesun.com) they are automatically  
> redirected to [www.first.snowmaaninthesun.com/first/view](http://www.first.snowmaaninthesun.com/first/view) instead of  
> seeing “Welcome aboard Youâ€™re riding Ruby on Rails”! ??
> 
> i have tried setting my routes to
> 
> map.connect ‘’ :controller=\> ‘first’, :action =\> ‘view’
> 
> but this doesn’t seem to do anything.
> 
> \*links are to a demo rails app, no advertising or anything inappropriate

wow, my first answer to a post!! And its my own!!

make sure you go to you public folder and delete index.html within your  
rails app and then set your routes as defined above! should work!
