emberjs/ember.js — pull request #4259 by bschaeffer (2014-01-30 06:33:43+00:00)
Title: Route#controllerName takes precedence over Route#routeName during render

This pull assumes that in defining the `controllerName` property in on an `Ember.Route`, the expected default behavior for the `render` method would be to use the controller defined by that property when rendering the view.

The changed precedence would be:

1. The controller option specifically passed to `Route#render` (i.e. `this.render({controller: 'post'})`). If it is
passed specifically during invocation, that's a no-brainer.
2. The controller specified by the Route's `controllerName` property. If the user took the time to define the
property, then it makes sense that the expected behavior is to use that controller as the context for the
view.
3. If found, use the controller that matches the name of the template.
4. Finally, use the controller that matches the name of the route.