Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby Building Social Features in Ruby on Rails Managing Friendships Scoped Finders

Justan Human
Justan Human
71,770 Points

Poorly worded, unclear code challenge - Scoped Finders - Building Social Features in Ruby on Rails

Adding pending_ to current_user.user_friendships.all returns a " Bummer! The finder was not properly scoped." I am truly stumped. please help, thank you! https://teamtreehouse.com/library/building-social-features-in-ruby-on-rails/managing-friendships/scoped-finders

user_friendships_controller.rb
class UserFriendshipsController < ApplicationController
  # Write your code here
  def index
    @user_friendships = current_user.pending_user_friendships.all
  end

end

3 Answers

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

Clarified the descriptions and fixed what I think was a bug. Please try the challenge again, and let me know whether it works!

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,623 Points

Hey Justan,

I haven't done this course, and it been quite some time since I've done Ruby and / or Rails. But, I did find this post that may hold the answers for you... hopefully. :dizzy:

Justan Human
Justan Human
71,770 Points

Thanks for the reply Jason Anders. I combed over every word in your linked post and it seems that they redesigned the code challenge, and in the process made it IMPOSSIBLE.
Jason Seifer please help!?

Jason Anders
Jason Anders
Treehouse Moderator 145,623 Points

Sorry that linked post was no help.

Your question is now older that a few days with no resolution. If you want, you can contact Treehouse Support. Basically, just let them know that your Forum post has not been successfully resolved (be sure to include the link to your post). They will, in turn, forward it to the teachers, and someone should be in touch with you to help you resolve this... hopefully soon.

:dizzy:

Jason Anders
Jason Anders
Treehouse Moderator 145,623 Points

Am now in the process of the course and it makes no sense. Did you ever get it figured Justan Human?

Maybe Andrew Chalkley could have a look?