Models unavailable in template. I have a very simple ember app. I’ve spent many hours trying this every different way I could think of. Have read and reread the documentation. This was working, now it’s not. Why not? What am I missing?
Okay, moving your users/index template into your users template works.
I’m (definitely) no expert on ember, but it looks like the model loaded in your UsersRoute is only available to your users template and not the users/index template for some reason (as far as I’m aware, they’re one in the same for the /users route, so that seems a little weird).
Thanks! This is slowly coming clear to me. There really needs to be a better way to troubleshoot this stuff.
The new introduction on the Ember site rocks! But I still am having problems of the simplest nature. For example, I have an AutomobilesRoute that’s using an automobiles template and it works great. I added an AutomobilesController and a simple property (caption) for the table’s caption, but nothing I do will make it appear in the page. I’ve checked everything against the documentation and the example apps, and I see nothing wrong. There are no errors, of course.
It’s this sort of frustrating experience that makes Ember difficult to adopt. When the magic works, it’s beautiful. When it doesn’t, good luck! I’m currently trying to teach Ember to a classroom full of web developers and they are all frustrated.
So thanks much for the help! I’m sure I’ll get it all figured out soon.
Heh, heh. This was big brain fart. Two hours banging my head agains the wall, and the problem? Wasn’t loading the controller’s js file. Sigh… Thanks for the attempted help, though.