# This.store.find(..) is not working in controller

**URL:** https://discuss.emberjs.com/t/this-store-find-is-not-working-in-controller/3851
**Category:** Ember Data
**Created:** [January 15, 2014, 2:55pm UTC](https://discuss.emberjs.com/t/this-store-find-is-not-working-in-controller/3851 "2014-01-15T14:55:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![susai](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/susai/32/222_2.png) [@susai](https://discuss.emberjs.com/u/susai)
#### Post date: [January 15, 2014, 2:55pm UTC](https://discuss.emberjs.com/t/this-store-find-is-not-working-in-controller/3851/1 "2014-01-15T14:55:09Z")

</div>

```
I have two models say student,project. In MyRoute i set student as model so that i can get it in the MyController using "this.get('model')". But i want to get project details in MyController. How can i achieve this ? @tarasm 

```

---

<div class="post-metadata">

### Author: ![tarasm](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/tarasm/32/15980_2.png) [@tarasm](https://discuss.emberjs.com/u/tarasm)
#### Post date: [January 15, 2014, 2:57pm UTC](https://discuss.emberjs.com/t/this-store-find-is-not-working-in-controller/3851/2 "2014-01-15T14:57:04Z")

</div>

What do you mean its not working?

What error are you getting?

---

<div class="post-metadata">

### Author: ![tarasm](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/tarasm/32/15980_2.png) [@tarasm](https://discuss.emberjs.com/u/tarasm)
#### Post date: [January 15, 2014, 3:07pm UTC](https://discuss.emberjs.com/t/this-store-find-is-not-working-in-controller/3851/4 "2014-01-15T15:07:48Z")

</div>

Please, read this [How to Report Bugs Effectively](http://www.chiark.greenend.org.uk/~sgtatham/bugs.html) or something similar and respond with an answer that would help me help you.

---

<div class="post-metadata">

### Author: ![susai](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/susai/32/222_2.png) [@susai](https://discuss.emberjs.com/u/susai)
#### Post date: [January 15, 2014, 3:32pm UTC](https://discuss.emberjs.com/t/this-store-find-is-not-working-in-controller/3851/6 "2014-01-15T15:32:00Z")

</div>

```
 Nice one. Thanks. Ill follow before post a doubt or bug 

```

---

<div class="post-metadata">

### Author: ![tarasm](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/tarasm/32/15980_2.png) [@tarasm](https://discuss.emberjs.com/u/tarasm)
#### Post date: [January 17, 2014, 2:21am UTC](https://discuss.emberjs.com/t/this-store-find-is-not-working-in-controller/3851/7 "2014-01-17T02:21:57Z")

</div>

The simplest way is to make an additional request in your Route#setupController.

```javascript

Ember.StudentRoute = Ember.Route.extend({
  setupController: function(controller, model) {
    // will perform the default behaviour which will load your controller with the model.
    this._super.apply(this, arguments);
    
    // perform your Ember Data query or other AJAX request
    this.store.find('project').then(function(result){
       // handle the result and load it into the controller
       controller.set('projects', result);
    }, function(error) {
       // handle the errors
    });
  }
});

```
