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

Ruby

Jonathan Mundy
Jonathan Mundy
9,780 Points

Are 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
STAFF
Nick Pettit
Treehouse Teacher

Hi Jonathan,

I've sent this along to Jason. He would be the best person to answer your question. :)

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Thanks for the heads-up, Jonathan! I've reordered them. Sorry about that.

Jonathan Mundy
Jonathan Mundy
9,780 Points

Hey guys, thanks for the quick response. I appreciate your help.

Mike Gabriel
Mike Gabriel
8,402 Points

Is 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