# Is routing to application controller possible?

**URL:** <https://www.ruby-forum.com/t/is-routing-to-application-controller-possible/103276>\
**Category:** Rails\
**Created:** [May 3, 2007, 6:17pm UTC](https://www.ruby-forum.com/t/is-routing-to-application-controller-possible/103276 "2007-05-03T18:17:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [May 3, 2007, 6:17pm UTC](https://www.ruby-forum.com/t/is-routing-to-application-controller-possible/103276/1 "2007-05-03T18:17:46Z")

</div>

All,

I added this:

```
map.connect '', :controller => 'application', :action => 'index'

```

to my routes.rb file. But I don’t see ApplicationController#index being  
called when I request ‘/’ from my server.

Is it cool to route directly to the ApplicationController?

Thanks,  
Wes

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [May 3, 2007, 6:31pm UTC](https://www.ruby-forum.com/t/is-routing-to-application-controller-possible/103276/2 "2007-05-03T18:31:57Z")

</div>

Wes G. wrote:

> All,
> 
> I added this:
> 
> ```
> map.connect '', :controller => 'application', :action => 'index'
> 
> ```
> 
> to my routes.rb file. But I don’t see ApplicationController#index being  
> called when I request ‘/’ from my server.
> 
> Is it cool to route directly to the ApplicationController?
> 
> Thanks,  
> Wes

Never mind, some weird IE caching crap.

WG

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [May 3, 2007, 7:34pm UTC](https://www.ruby-forum.com/t/is-routing-to-application-controller-possible/103276/3 "2007-05-03T19:34:14Z")

</div>

On May 3, 12:17 pm, Wes G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> All,
> 
> I added this:
> 
> ```
> map.connect '', :controller => 'application', :action => 'index'
> 
> ```
> 
> to my routes.rb file. But I don’t see ApplicationController#index being  
> called when I request ‘/’ from my server.
> 
> Is it cool to route directly to the ApplicationController?

Actually I think the answer to that question is “no”. Check out this  
thread:

[http://www.ruby-forum.com/topic/89699#173428](http://www.ruby-forum.com/topic/89699#173428)

-Bill
