Chapter 1. What This Short Cut Covers

The Rails routing system has always been a key component of the framework, and with the introduction of RESTful routes in the past year, it has taken center stage. Fully programmable, the routing system governs the process of mapping request URLs to the appropriate controller action. Routing also helps you when you’re writing code, especially view templates, where the same logic that interprets URLs works in reverse to automate the generation of URL strings in your code. As all routing is rule-based, you have to know how to write the rules to get the most out of the routing system. In this short cut, you’ll learn techniques for writing custom routing rules, how to tap into the ...

Get Rails Routing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.