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
Thomas McCracken
13,591 PointsSorting is not working for me....any ideas why??
As I've had to modify a lot of what's going on in the video, the result is now that I'm unable to sort at all.
To recap: I created a property called posts in my PostsController which I assigned the posts data which is not coming from the model property defined in the PostsRoute. That model property in the Route does not seem to be doing anything. From there I used this property to iterate over the posts in the template.
I know not having the posts defined as the model in the route is the cause of the problem but I do not have a solution since I'm following the video and this stuff has become deprecated now.
Any ideas on how to get the model and the route working normally again would be appreciated! Thanks!