# Model not being executed when router change

**URL:** <https://discuss.emberjs.com/t/model-not-being-executed-when-router-change/5490>\
**Category:** Ember Data\
**Created:** [June 1, 2014, 7:57pm UTC](https://discuss.emberjs.com/t/model-not-being-executed-when-router-change/5490 "2014-06-01T19:57:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rommelxcastro](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/rommelxcastro/32/15870_2.png) [@rommelxcastro](https://discuss.emberjs.com/u/rommelxcastro)\
**Post date:** [June 1, 2014, 7:57pm UTC](https://discuss.emberjs.com/t/model-not-being-executed-when-router-change/5490/1 "2014-06-01T19:57:07Z")

</div>

i’m building my first emberJS application, just started learning yesterday about the framework to day i started getting into some problems that couldn’t find a solution for… this is one of them 😄

i have a search result: [http://rommelxcastro.github.io/batarang/#/stocks/search/goo](http://rommelxcastro.github.io/batarang/#/stocks/search/goo) if you click on one of the item you should go to a new route that is something like ([http://rommelxcastro.github.io/batarang/#/stocks/STATNOR/1225\_70109301\_2](http://rommelxcastro.github.io/batarang/#/stocks/STATNOR/1225_70109301_2)), this is suppose to show all the info, no problem with this, the problem is that when the route is loaded i need to load some more information for this specific item and update the model but looks like the model inside the route is not being executed, idk why or the info is not being updated. this is my route code: [https://github.com/rommelxcastro/batarang/blob/develop/app/scripts/routes/stock\_route.js#L17](https://github.com/rommelxcastro/batarang/blob/develop/app/scripts/routes/stock_route.js#L17)

thanks for the help, if you didn’t understand something, please let me know

---

<div class="post-metadata">

**Author:** ![kylecoberly](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/kylecoberly/32/15828_2.png) [@kylecoberly](https://discuss.emberjs.com/u/kylecoberly)\
**Post date:** [June 2, 2014, 4:26am UTC](https://discuss.emberjs.com/t/model-not-being-executed-when-router-change/5490/2 "2014-06-02T04:26:28Z")

</div>

I think the problem is that you’re trying to pass an object in your transitionToRoute() in your controller- it should follow these [conventions](http://emberjs.com/api/classes/Ember.Controller.html#method_transitionToRoute). Pass the stock symbol as a dynamic segment to the display route (eg., transitionToRoute(“stocks.search”, stockSymbol)).
