Discussion URLs: Opaque, Usable, and Readable
Code: ActiveResource, human-readable, named routes, nested routes, Rails, resources, RESTful, routes, routing, Ruby, URLs
I just wrote about Human-Readable ActiveResource URLs, and now I want to examine one example of them more in-depth. Discussion forum URLs have several conflicting goals:
Rails: Semicolons Out, Slashes In
Code: map, mapping, Rails, resources, routes, routing, semicolon, slash, slashes, URLs
As of r6485, Edge Rails resource routes use / as the URL separator for actions instead of ;. This will be in Rails 2.0 (and I like / more), so I wanted to get prepared for the change by updating my URLs now. I didn’t want to move to Edge Rails (too exciting for me), so I grabbed the change, dropped it into a source file, and loaded it into my app (thank you, open classes).