Rails Routing (Digital Shortcut)
- By David A. Black
- Published May 15, 2007 by Addison-Wesley Professional.
- Copyright 2007
- Dimensions: 10-1/2x7-3/4
- Pages: 115
- Edition: 1st
- Short Cut
- ISBN-10: 0-321-50924-2
- ISBN-13: 978-0-321-50924-6
Register your product to gain access to bonus material or receive a coupon.
The Rails routing system has always been a key component of theframework, and with the introduction of RESTful routes in the pastyear, it has taken center stage. Fully programmable, the routing systemgoverns the process of mapping request URLs to the appropriatecontroller action. Routing also helps you when you’re writing code,especially view templates, where the same logic that interprets URLsworks in reverse to automate the generation of URL strings in yourcode. As all routing is rule-based, you have to know how to write therules to get the most out of the routing system. In this short cut, you’lllearn techniques for writing custom routing rules, how to tap into theconvenience and power of named routes, and the workings of theRESTful routing that’s had such an impact on Rails development.
Along with a thorough introduction to routing syntax and semantics,you’ll find techniques for testing and troubleshooting routes, and tipson the use of this important part of your Rails skill set.
Section 1: What This Short Cut Covers 3
Section 2: Introduction 6
Section 3: The Routing System 13
Section 4: Writing Custom Routes 31
Section 5: Named Routes 45
Section 6: REST, Resources, Representations, Routing, and Ruby on Rails 53
Section 7: Reflecting on Routes 91
Further Resources 112
Acknowledgments 113
About the Author 114
Source Code
You must be logged in to view this information.
Source Code
You must be logged in to view this information.
Source Code
Download the Source Code files for this book:
Excerpts
Table of Contents
Section 1: What This Short Cut Covers 3
Section 2: Introduction 6
Section 3: The Routing System 13
Section 4: Writing Custom Routes 31
Section 5: Named Routes 45
Section 6: REST, Resources, Representations, Routing, and Ruby on Rails 53
Section 7: Reflecting on Routes 91
Further Resources 112
Acknowledgments 113
About the Author 114

Short Cut $19.99
This PDF is easy to download and read -- no passwords or activation required. We customize your PDF by watermarking each page with your name in the lower right corner.
Your PDF will be accessible from your Account page after purchase and requires the free Adobe® Reader® software to read it.
We respect your choice for easy-to-use digital content and hope in return you will respect the hard work that went into producing it.
- Save more by becoming a member.
- Corporate, Academic, and Employee Purchases
Online access to books, videos, and tutorials from Addison Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media and others - starting as low as $22.99. Learn more and start a free trial.


Account Sign In
View your cart