Skip to content

Instantly share code, notes, and snippets.

@between40and2
Created December 12, 2013 12:14
Show Gist options
  • Save between40and2/7927121 to your computer and use it in GitHub Desktop.
Save between40and2/7927121 to your computer and use it in GitHub Desktop.
rails-routes-in-depth
Do you know, you can access your own rails website on /rails/info/routes , under development environment?
The working house is shown below.
https://github.com/rails/rails/blob/master/railties/lib/rails/info_controller.rb
In turn, ActionDispatch::Routing::RoutesInspector is the real hero. Linked below.
https://github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/routing/inspector.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment