Template not rendering on route change


#1

I have a base Route that looks this:

Spark.EntityRoute = Ember.Route.extend({
  renderTemplate: function() {
    var type = this.get("type");
    this.render('entity', { controller: type });
  }
});

and am overriding it like so:

Spark.GameRoute = Spark.EntityRoute.extend({
  type: "game"
})

and it renders a template:

<script type="text/x-handlebars" data-template-name="entity">
</script>

I also have an EntityController and a GameController that inherits from it.

My problem is that when I transition to a different game, it triggers the route and calls render template with a different model as expected but the view on screen does not change. It doesn’t actually render anything new.