TryGhost/Ghost — pull request #2916 by jaswilli (2014-06-09 00:32:05+00:00)
Title: Handle invalid post ids in editor route

This does two things:

1. Fail fast on requests to the `editor` route for post ids that are clearly invalid. Doing this prevents making a network request and pulling down all posts for no reason.

2. Transitions back to the `posts.index` route for post ids that do not exist instead of returning an invalid model.