Created
February 2, 2013 00:57
-
-
Save fedesoria/4695354 to your computer and use it in GitHub Desktop.
Test routes on 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