Created
August 13, 2012 15:34
-
-
Save chyld/3341929 to your computer and use it in GitHub Desktop.
rails routes in console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include routing and URL helpers | |
include ActionDispatch::Routing | |
include Rails.application.routes.url_helpers | |
# use routes normally | |
users_path #=> "/users" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment