Forum: Ruby on Rails problem with reverse mapping (url_for problem)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Charlie B. (Guest)
on 2006-04-17 16:36
(Received via mailing list)
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?
Charlie B. (Guest)
on 2006-04-17 23:00
(Received via mailing list)
Anyone?  I'm trying to develop a page sweeper plugin but it really craps
out when I run the url_method on this.
This topic is locked and can not be replied to.