Skip to content

Instantly share code, notes, and snippets.

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