I’ve been trying to evaluate emberjs for a rails project.
Can someone suggest (or ideally for my failing project) how get my data to display in the view? I’ve only run rails g ember:bootstrap and created a User table with a single attribute username.
Link to repo: https://github.com/Rhodee/ember-hello-world
The console provides only these clues:
Uncaught TypeError: Cannot call method 'extend' of undefined application_controller.js:1
Uncaught TypeError: Cannot call method 'extend' of undefined user_controller.js:1
Uncaught TypeError: Object <Ember.Object:ember282> has no method 'removeArrayObserver' ember.js:11068
I’ve already utilized these resources for study:
- https://github.com/emberjs/data#readme
- http://www.cerebris.com/blog/2012/01/26/beginning-ember-js-on-rails-part-2/
- http://jsfiddle.net/C7LrM/59/
- http://emberjs.com/documentation/
Where can I find up-to-date tutorials reflecting the state of how to get things wired up to simply display an index template?
The first two errors you’re seeing are an open issue.
I’m trying to figure this all out, like you. I resolved the errors by changing the boilerplate from
to
I hope that helps!