code: function (name, model) {
        var owner = _containerOwner.getOwner(this);
  
        model = model || this.modelFor(name);
  
        return _emberRoutingSystemGenerate_controller.default(owner, name, model);
      }
docs: Generates a controller for a route.
  Example
  ```javascript
  App.PostRoute = Ember.Route.extend({
  setupController: function(controller, post) {
  this._super(controller, post);
  this.generateController('posts', post);
  }
  });
  ```
  @method generateController
  @param {String} name the name of the controller
  @param {Object} model the model to infer the type of the controller (optional)
  @private