On Aug 5, 2005, at 2:48 PM, Peter Fitzgibbons wrote:
> Can someone explain to me how to test_functional my routes.rb?
>
> I want to create a route so that "http://localhost" resolves to
> "http://localhost/mycontroller/myaction". And I also want to
unit-
> test the result.
>
> Can someone help me with the map.connect line and the unit test ?
>
> Peter J. Fitzgibbons
> Applications Manager
> Lakewood Homes - "The American Dream Builder"(r)
> Peter.Fitzgibbons-STCS76aLmhk1y/cD6r8xzl6hYfS7NtTn@public.gmane.org
> (847) 884-8800
>
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
map.connect '''', :controller =>
''mycontroller'', :action => ''myaction''
Put this line near the bottom of your routes.rb. The routes are tried
from the top to the bottom, since this will be the default index page
it should be near the bottom just above any catchall route you may
have. I''m not certain how to test the routes.
HTH-
-Ezra Zygmuntowicz
WebMaster
Yakima Herald-Republic Newspaper
ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org
509-577-7732
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails