Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Ember.js Models Loading Arrays of JavaScript objects

Thomas McCracken
Thomas McCracken
13,591 Points

Ember now requiring to add a controller explicitly???

I couldn't get this to work the way it does in the video and I also changed the deprecated #each loop.

The only way I was able to get it to work was to create the posts controller and assign a property posts with the posts returned from the route. The video says that a controller is automatically created by convention with the same name as the route so I'm not sure if something has changed of if I'm doing something wrong.

It took me a while to get this correct so I figured I would put it on the forum in case anyone else is having trouble too.