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

Building Social Features in Ruby on Rails > Using AJAX > Controller Formats > Code Challenge

This task requires knowledge of a method taught in the video that follows.

Task 2/2

In the index method, use the respond_with method to return the user_friendships instance variable.

The method respond_with was not covered, only respond_to. It was simple enough via a Google Search to see what the method actually was but just figured since it's a new lesson there might be an issue. The respond_with method is actually covered in the next video.

I'm guessing the quiz at the end of the badge is in a reversed order from the last code challenge.

1 Answer

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hi Mike, nice catch! I've updated the notes on that particular video with example code.