Is routing to application controller possible?

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

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

On May 3, 12:17 pm, Wes G. [email protected]
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

-Bill

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs