Testing named routes in the rails console

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.

You must be logged in to post a comment.