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 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,858 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,858 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,858 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?