ActionDispatch::Routing::UrlFor

module ActionDispatch::Routing::UrlFor

Included modules:
ActionDispatch::Routing::PolymorphicRoutes

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 information about routing and routes.rb.

Tip: If you need to generate URLs from your models or some other place, then ActionController::UrlFor is what you're looking for. Read on for an introduction. In general, this module should not be included on its own, as it i