# Routes? how do I make it so I don't have a path

**URL:** <https://www.ruby-forum.com/t/routes-how-do-i-make-it-so-i-dont-have-a-path/132347>\
**Category:** Rails\
**Created:** [March 19, 2008, 10:51am UTC](https://www.ruby-forum.com/t/routes-how-do-i-make-it-so-i-dont-have-a-path/132347 "2008-03-19T10:51:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 19, 2008, 10:51am UTC](https://www.ruby-forum.com/t/routes-how-do-i-make-it-so-i-dont-have-a-path/132347/1 "2008-03-19T10:51:11Z")

</div>

ok so I have a website for example:  
[www.mywebsite.com](http://www.mywebsite.com)  
as of now with no routing(if thisi s what you have to use)  
to get to my app I have to go to:  
[www.mywebsite.com/my\_controller/blablabla](http://www.mywebsite.com/my_controller/blablabla)

I will like to make it so if someone goes to  
[www.mywebsite.com](http://www.mywebsite.com) it gets my app.

Sorry Im very new I barelly was able to finish my first application.

thanks.,

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 19, 2008, 12:42pm UTC](https://www.ruby-forum.com/t/routes-how-do-i-make-it-so-i-dont-have-a-path/132347/2 "2008-03-19T12:42:54Z")

</div>

Check out map.root  
([http://api.rubyonrails.org/classes/ActionController/Routing.html](http://api.rubyonrails.org/classes/ActionController/Routing.html),  
also, look for it in the comments in your routes.rb file).

–wpd

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 19, 2008, 10:36pm UTC](https://www.ruby-forum.com/t/routes-how-do-i-make-it-so-i-dont-have-a-path/132347/3 "2008-03-19T22:36:05Z")

</div>

On Mar 19, 12:42 am, rek2 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ok so I have a website for example:www.mywebsite.com  
> as of now with no routing(if thisi s what you have to use)  
> to get to my app I have to go to:www.mywebsite.com/my\_controller/blablabla
> 
> I will like to make it so if someone goes towww.mywebsite.comit gets my app.
> 
> Sorry Im very new I barelly was able to finish my first application.
> 
> thanks.,

What version of Rails are you using? If it’s 1.2 or higher, use  
map.root.

Jeff
