user569825
user569825

Reputation: 2459

Where and based upon what template are rails route helpers defined?

Rails URL helper methods like user_path are defined dynamically, but where exactly?

To which module/class/classpath do they belong?

Upvotes: 0

Views: 37

Answers (1)

SteveTurczyn
SteveTurczyn

Reputation: 36860

They're defined here... https://github.com/rails/rails/blob/0814bb62e5128aff7bfa55211efbd10ad3e37c07/actionpack/lib/action_dispatch/routing/route_set.rb

As near as I can see it's...

ActionDispatch::Routing::NamedRouteCollection

Upvotes: 1

Related Questions