2.1 The Two Purposes of Routing
The routing system does two things:
- It maps requests to controller action methods
- It enables the dynamic generation of URLs for you for use as arguments to methods like
link_toandredirect_to.
The routing system does two things:
link_to and redirect_to.