Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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.