Return to Snippet

Revision: 29067
at July 20, 2010 19:33 by harrikauhanen


Initial Code
# this is the Rails 2 way
script/console
include ActionController::UrlWriter
users_path
user_path(123)

# this is the Rails 3 equivalent
rails console
include Rails.application.routes.url_helpers
users_path
user_path(123)

Initial URL

                                

Initial Description

                                

Initial Title
Displaying routes in Rails console

Initial Tags

                                

Initial Language
Rails