Problem with reverse mapping (url_for problem)

I modified my routes to that you can reach my index action by just
typing in the site name (ie www.mysite.com). I did this by:

map.connect ‘’, :controller => “pragmatic”

I need to be able to do a url_for(:controller => ‘pragmatic’) or
url_for(:controller => ‘pragmatic’, :action => ‘index’) and have them
map to www.mysite.com/pragmatic or www.mysite.com/pragmatic/index is
this possible?

Anyone? I’m trying to develop a page sweeper plugin but it really craps
out when I run the url_method on this.

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