Chris Collinsworth

Joined

2,700 Experience
23 Lessons Completed
0 Questions Solved

Activity

Posted in Liking Posts Discussion

It works great. Random question, but is there a way to sort the posts on the index page by most liked?

Posted in Liking Posts Discussion

I didn't have has_many: likes in my Lesson model! Thank you! I also had to add @course = Course.find(params[:course_id]) in my def create and def create part of my Lesson::LikesController for proper routing. It works beautifully. Thanks again for these.

Posted in Liking Posts Discussion

Thank you for responding! I got past the uninitialized constant error now I keep getting 'undefined method likes'. I am trying to set up this like button on a nested resource (a lesson inside of a course), would that change things? Thanks again

Posted in Liking Posts Discussion

Thank you for these screencasts! They are awesome. I keep getting an error "Routing Error uninitialized constant Posts" when I click the 'like' link. I feel like this is a fairly simple fix? Any help would be much appreciated. Thanks in advance.