Skip to content

Instantly share code, notes, and snippets.

@harrifeng
Created November 10, 2016 03:55
Show Gist options
  • Save harrifeng/073e35fc8400f51b4bdd04245e17cf17 to your computer and use it in GitHub Desktop.
Save harrifeng/073e35fc8400f51b4bdd04245e17cf17 to your computer and use it in GitHub Desktop.
Very important way to list all the path that already set in routes
Rails.application.routes.named_routes.helpers.select {|h| h.to_s =~ /some_search/ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment