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 4. Writing Custom Routes

The default route is a very general one. Its purpose is to catch all routes that haven’t matched already. Now we’re going to look at that already part: the routes defined earlier in the routes.rb file, routes that match more narrowly than the general one at the bottom of the file.

You’ve already seen the major components that you can put into a route: static strings, bound parameters (usually including :controller and often including :action), and wildcard “receptors” ...

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