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

Code Challenge Finding and Building Models Part 2

I am having trouble passing the second part of this challenge. For one, I am getting an error that says "There was a problem connecting to the Code Challenge Engine." The first part passes with this message.

   class UserFriendshipsController < ApplicationController

  def new

    if params[:friend_id]

     @friend = User.find(params[:friend_id])

    else

        flash[:error] = "Friend required"

  end

end

Thanks

What does the second part say? And what have you tried? Giving us that information will help us to help you =)

2 Answers

I was silly and forgot an "end" in the code. Thank you for the quick help!!!!

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Sorry about that Andy Bernard we're looking in to code challenge engine issues. Also the information that @Brandon Barrette asked for would be super helpful.