#105 ✓resolved
Xavier Noria

Cover execution of named routes in console via app.

Reported by Xavier Noria | January 16th, 2008 @ 03:24 AM | in The Rails 3 Way

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 Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket