ember-admin attempts to use the undefined value Handlebars.helpers['bind']
Closed this issue · 0 comments
I'm not an expert at this (not sure precisely what detail would be best to include) but here's the circumstance:
I followed the Install and Usage instructions specified in the README. I set up admin routes for my Rails backend, and loaded http://localhost:4200/#/admin/ (looks fine, no issues detectable).
Next I click on one of my model names underneath the header, and navigate to, e.g. http://localhost:4200/#/admin/user . The HTTP request goes through find, some User models are fetched from the backend, but when it's time to render them I see the following error:
Uncaught TypeError: Cannot read property 'call' of undefined
In the debugger:
define('ember-admin/components/property-print', ['exports', 'ember'], function (exports, Ember) {
'use strict';
var get = Ember['default'].get;
exports['default'] = Ember['default'].Component.extend({
defaultLayout: function(context, options){
var path = 'record.' + get(context, 'column');
options.hash = {};
Ember['default'].Handlebars.helpers['bind'].call(context, path, options);
}
});
});
Ember['default'].Handlebars.helpers['bind'] is undefined.
(If it saves anyone any work, I tried changing the offending line in property-print.js to:
Ember.Handlebars.helpers.bindAttr.helperFunction.call(context, path, options);
but that didn't work either)
I'm using ember-cli 0.2.5 and ember 1.12.0.