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()