Problem with reverse mapping (url_for problem)


#1

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?


#2

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