# Route hierarchy / activation

**URL:** <https://discuss.emberjs.com/t/route-hierarchy-activation/3040>\
**Category:** Uncategorized\
**Created:** [October 22, 2013, 9:16am UTC](https://discuss.emberjs.com/t/route-hierarchy-activation/3040 "2013-10-22T09:16:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebenroux](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/ebenroux/32/10882_2.png) [@ebenroux](https://discuss.emberjs.com/u/ebenroux)\
**Post date:** [October 22, 2013, 9:16am UTC](https://discuss.emberjs.com/t/route-hierarchy-activation/3040/1 "2013-10-22T09:16:07Z")

</div>

We have a scenario along these lines:

Quote —\>Create

So route names `quote` and `quote.create`.

The issue is that we need to render the templates into the main outlet. So in our main route (that all other are inherited from) we have this:

` renderTemplate: function() { this.render({ into: 'application' }); }`

When I navigate to `quote` it renders the quote view. From there I navigate to `quote.create` and it renders the create view. However, going _back_ to `quote` from `quote.create` renders nothing.

How can I get around this?

**EDIT**

When I go back to the \quote url route ‘quote.index’ is sought. Since it is defined ‘automagically’ nothing happens. When I define the route explicitly ember tries to find the `quote.index` template and view and _these_ do not exist.

**EDIT 2**

A workaround I tried is to have this:

`App.QuoteIndex{Route|Controller|View} = App.Quote{Route|Controller|View}.extend()`

---

<div class="post-metadata">

**Author:** ![SntsDev](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/sntsdev/32/269_2.png) [@SntsDev](https://discuss.emberjs.com/u/SntsDev)\
**Post date:** [March 28, 2014, 8:40pm UTC](https://discuss.emberjs.com/t/route-hierarchy-activation/3040/2 "2014-03-28T20:40:34Z")

</div>

Hi @ebenroux. Could you manage to understand what has to be done to get the “back” button re-rendering the previous route in the ‘application’ template? Is it a bug?

---

<div class="post-metadata">

**Author:** ![opsb](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/opsb/32/9475_2.png) [@opsb](https://discuss.emberjs.com/u/opsb)\
**Post date:** [March 28, 2014, 11:32pm UTC](https://discuss.emberjs.com/t/route-hierarchy-activation/3040/3 "2014-03-28T23:32:05Z")

</div>

I may have misunderstood exactly what you want but I think the following should do it

```
// router.js
Router.map(function() {
    this.resource('quote', function(){
        this.route("create");
    });
});

// templates/application.hbs
{{outlet}}

// templates/quote/index.hbs
<h1>Quote</h1>
{{#link-to 'quote.create'}}
	Create
{{/link-to}}

// templates/quote/create.hbs
<h1>Create quote</h1>
{{#link-to 'quote.index'}}
	Back
{{/link-to}}

```

---

<div class="post-metadata">

**Author:** ![ebenroux](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/ebenroux/32/10882_2.png) [@ebenroux](https://discuss.emberjs.com/u/ebenroux)\
**Post date:** [March 31, 2014, 4:17am UTC](https://discuss.emberjs.com/t/route-hierarchy-activation/3040/4 "2014-03-31T04:17:00Z")

</div>

Hello,

Here is my SO question with the answer that I accepted: [ember.js - Ember js version 1: Route hierarchy / activation - Stack Overflow](http://stackoverflow.com/questions/19514854/ember-js-version-1-route-hierarchy-activation)

Regards, Eben
