named routes in console via app
Reported by Xavier Noria | January 15th, 2008 @ 10:19 PM | in Second Edition
The section "Named Routes in the Console" on pages 134--135 explains a way to be able to run helpers from within the console including ActionController::UrlWriter.
My coworker Javier RamÃrez discovered yesterday you can test named routes in the console directly from the app object:
$ script/console
Loading development environment (Rails 2.0.2)
>> app.users_url
=> "http://www.example.com/users"
>>
(The output should read "http://www.example.com/users" but it is printed in white color, please mouse over :-)
Note that "example.com" is already used as well.
Comments and changes to this ticket
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
