Testing named routes in the rails console

Posted: September 16, 2008. Tags: Rails

Just found out how to test named routes in the Rails consoleĀ here:

script/console
>> app.webpages_url :site => "foo"
> "http://www.example.com/foo/webpages"
>>

The mysterious app object is described here.