documentcloud/backbone — Issue #776: How to handle Friendly URL as ID?
Author: kendagriff
Created: 2011-12-06 15:06:34+00:00
State: open

How would I go about allowing Backbone.Model to fetch and update `/widgets/my-cool-widget`, as opposed to `/widgets/02938282`?

I'd prefer to avoid passing 'my-cool-widget' to Backbone.Model's id property, for that introduces a number of other inconsistencies (for example, if the user changes the URL, it's not updated client-side).

Ideas?