javascript - Ember error - "Call stack size exceeded range error" when loading a route -


i building app in ember uses rails backend.

i error whenever try navigating consultants show route, ember throws "call stack size exceeded range error". have built out other parts of app using same kind of methods below, reason navigating show route throw kind of error.

i'm not sure problem or what's going on. thanks.

this error logged in chrome console.

error while loading route: consultant.show maximum call stack size exceeded rangeerror: maximum call stack size exceeded @ apply (http://localhost:3000/assets/ember.js?body=1:7980:27) @ superwrapper [as rendertemplate] (http://localhost:3000/assets/ember.js?body=1:7567:15) @ embermaven.consultantshowroute.ember.route.extend.rendertemplate (http://localhost:3000/assets/emberadmin/routes/consultants_route.js?body=1:24:10) @ apply (http://localhost:3000/assets/ember.js?body=1:7980:27) @ superwrapper [as rendertemplate] (http://localhost:3000/assets/ember.js?body=1:7567:15) @ embermaven.consultantshowroute.ember.route.extend.rendertemplate (http://localhost:3000/assets/emberadmin/routes/consultants_route.js?body=1:24:10) @ apply (http://localhost:3000/assets/ember.js?body=1:7980:27) @ superwrapper [as rendertemplate] (http://localhost:3000/assets/ember.js?body=1:7567:15) @ embermaven.consultantshowroute.ember.route.extend.rendertemplate (http://localhost:3000/assets/emberadmin/routes/consultants_route.js?body=1:24:10) @ apply (http://localhost:3000/assets/ember.js?body=1:7980:27)  

here route looks like.

embermaven.consultantshowroute = ember.route.extend({    model: function(params){    return this.store.find('consultant, params.consultant_id');   },   rendertemplate: function() {    this.rendertemplate('emberadmin/consultant/show');   },   serialize: function(model){    return { consultant_id: model.get('id') };   } }); 

and router.js file.

  this.resource('consultants', function(){});    this.route('consultants.new', {path: '/consultants/new'});   this.route('consultant.show', {path: '/consultant/:consultant_id'});   this.route('consultant.edit', {path: '/consultant/:consultant_id/edit'}); 

nevermind figured out.

i using rendertemplate rather this.render.

the conflict happening when ember didn't know application template render.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -