I got an email in response to an old post on how I designed NearbyGamer‘s discussion URLs. It asked how to create readable URLs for a community site where users might edit those URLs. What happens after users have made lots and lots of edits?
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:
Human-Readable ActiveResource URLs
Code: ActiveResource, design, human-readable, named routes, nested routes, Rails, Rails 1.1, Rails 1.2, RESTful, routes, URLs
I’ve got URLs on the brain this week. I started NearbyGamers using Rails 1.1 with just gamers and tags. I upgraded to Rails 1.2 (and liked it)
, and added discussions after I updated to Rails 1.2. I was able to use ActiveResource for Discussions with Posts as a nested resource. I’m really happy with this code, as it’s very tidy.