Last active
August 29, 2015 14:18
-
-
Save blasterpal/578e59ce03d55cf3e55e to your computer and use it in GitHub Desktop.
Programmatically print Rails routes
This file contains hidden or 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
| Rails.application.routes.routes.each do |route| | |
| puts route.path.spec.to_s | |
| end;nil | |
| # specs with stubbed routes: https://github.com/blakechambers/matterhorn/blob/master/spec/support/url_test_helpers.rb | |
| routes.routes.each do |route| | |
| puts route.path.spec.to_s | |
| end;nil | |
| Rails.application.routes.named_routes.helpers | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment