O'Reilly logo

Rails Routing by David A. Black

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Introduction

When I train people in Rails, I often explain that although a Rails application consists of lots of different little programs doing different things, in some respect the application’s controllers are the application. What I mean is that when someone sends a request to your application, the goal of the request is to execute a controller action. And the execution of the action is the flashpoint, the fulcrum, the main event.

So, it makes sense that the process by which Rails determines which controller and which action to execute must be very important. That process is embodied in the routing system.

The routing system maps a URI to actions. It does this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required