Charlie Bowman
2006-Apr-17 12:36 UTC
[Rails] 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?
Charlie Bowman
2006-Apr-17 19:00 UTC
[Rails] problem with reverse mapping (url_for problem)
Anyone? I''m trying to develop a page sweeper plugin but it really craps out when I run the url_method on this. On Mon, 2006-04-17 at 08:36 -0400, Charlie Bowman wrote:> 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? > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060417/cb0d5763/attachment.html