Note that there are some explanatory texts on larger screens.

plurals
  1. POEmber does not render after transition
    primarykey
    data
    text
    <p>I have just written extremly simple Ember app, built on top of the Rails app, working with Ember Data and displaying, creating and persisting just one entity type to the server. Everything with the latest tools (Ember v1.0.0-pre.4-134-gaafb5eb).</p> <p>However, there is very strange problem I have encountered. My app has two views: entity list (index) and form for creating new entities. When I enter the index directly, everything displays OK. But when I go to the other view and then back to the list, the view is not rendered again. Where could be the problem?</p> <p>I guess it might be caused by my (maybe incorrect) using new Ember router. So I'm pasting important (from my point of view) parts of the app here:</p> <p><strong>Router:</strong></p> <pre><code>App.Router.map(function() { this.resource('bands', function() { this.route('new'); }); }); App.IndexRoute = Ember.Route.extend({ redirect: function() { this.transitionTo('bands'); } }); App.BandsRoute = Ember.Route.extend({ model: function() { return App.Band.find(); } }); App.BandsNewRoute = Ember.Route.extend({ renderTemplate : function(){ this.render('bands_new',{ into:'application' }); } }); </code></pre> <p><strong>Link back to list - which does not work:</strong></p> <pre><code>App.BandsNewController = Em.ArrayController.extend({ cancel: function() { this.transitionTo('bands'); } }); </code></pre> <p>Have a look at the whole app here: <a href="https://github.com/pavelsmolka/roommating" rel="nofollow">https://github.com/pavelsmolka/roommating</a><br> (It's hugely inspired by great <a href="https://github.com/dgeb/ember_data_example" rel="nofollow">https://github.com/dgeb/ember_data_example</a>)</p> <p>I don't believe it, but could it be bug in Ember itself?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload