Ruby on Rails 7.1.3.3 Module ActionDispatch::Routing::UrlFor actionpack/lib/action_dispatch/routing/url_for.rb Action Dispatch Routing UrlFor In config/routes.rb you define URL-to-controller mappings, but the reverse is also possible: a URL can be generated from one of your routing definitions. URL generation functionality is centralized in this module. See ActionDispatch::Routing for general info