2. Routing - 2.1 The Two Purposes of Routing

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_to and redirect_to.

你可能感兴趣的:(2. Routing - 2.1 The Two Purposes of Routing)