# View rendering twice? (or rather, nested routes are reloading data?)

**URL:** <https://discuss.emberjs.com/t/view-rendering-twice-or-rather-nested-routes-are-reloading-data/2337>\
**Category:** Uncategorized\
**Created:** [August 30, 2013, 12:18am UTC](https://discuss.emberjs.com/t/view-rendering-twice-or-rather-nested-routes-are-reloading-data/2337 "2013-08-30T00:18:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JustinRoss](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/justinross/32/14953_2.png) [@JustinRoss](https://discuss.emberjs.com/u/JustinRoss)\
**Post date:** [August 30, 2013, 12:18am UTC](https://discuss.emberjs.com/t/view-rendering-twice-or-rather-nested-routes-are-reloading-data/2337/1 "2013-08-30T00:18:04Z")

</div>

Hi! I have two routes called classyears and classyear. They’re nested like o:

```
this.resource('classyears', function(){
    this.resource('classyear', { path: '/classyear/:classyear_id'});
});

Posterkiosk.ClassyearsRoute = Ember.Route.extend({
  model: function() {
    return Posterkiosk.Classyear.find();
  }
});

Posterkiosk.ClassyearRoute = Ember.Route.extend({
  model: function(model) {
    return Posterkiosk.Classyear.find(model.classyear_id);
  }
});

```

I’m using the Ember-model RESTAdapter. When I load /classyears/classyear/:classyear\_id, it looks like classyear is rendering its data twice. Once with the correctly-loaded data, and once with no data loaded. The order appears to be random. If the no-data option happens last, it wipes out the correctly-loaded data, leaving a blank page.

Any thoughts?
