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!
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
Jonathan Mundy
9,780 PointsAre the code challenges coming too early in the RoR Building the Friendship UI badge?
Code Challenge: Finding & Building Models Code Challenge: Using the to_param method
Both of these challenges contain topics that aren't covered until the following video.
E.g. the methodology for completing the 'Using the to_param method' code challenge is not covered until the 'Creating the Friendship Form' video.
I was unable to complete the code challenges until I watched the subsequent videos.
I found this confusing and wanted to raise it in case it's a mistake in the ordering of the challenges.
Thanks,
Jonathan
4 Answers

Nick Pettit
Treehouse TeacherHi Jonathan,
I've sent this along to Jason. He would be the best person to answer your question. :)

Jason Seifer
Treehouse Guest TeacherThanks for the heads-up, Jonathan! I've reordered them. Sorry about that.

Jonathan Mundy
9,780 PointsHey guys, thanks for the quick response. I appreciate your help.

Mike Gabriel
8,402 PointsIs there still an issue with these code challenges? I haven't watched ahead like Jonathan did but have ran into a snag on the same challenge as him.
Create a new UserFriendship instance variable set to user_friendship with the user set to the current_user and the friend set to the @friend instance variable.
The only error I can get it to return is:
The user_friendship instance variable user was not found.
Though I am probably misunderstanding the question, I don't see this covered in the videos leading up to the challenge.
** Edit – Managed to figure out a solution that was accepted