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 trialJustan Human
71,770 PointsPoorly 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
class UserFriendshipsController < ApplicationController
# Write your code here
def index
@user_friendships = current_user.pending_user_friendships.all
end
end
3 Answers
Jay McGavren
Treehouse TeacherClarified the descriptions and fixed what I think was a bug. Please try the challenge again, and let me know whether it works!
Jason Anders
Treehouse Moderator 145,860 PointsHey 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.
Justan Human
71,770 PointsThanks 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
Treehouse Moderator 145,860 PointsSorry 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.
Jason Anders
Treehouse Moderator 145,860 PointsAm 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?
Andrew Chalkley
Treehouse Guest TeacherPinging Jay McGavren our new Ruby teacher :)