🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀 New videos dropping every week—start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Community Projects
    • Live Sessions
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Community Projects Live Sessions Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Zixing Li
    Zixing Li
    54 Points

    Writing the user_friendships_controller and model in Rails 5

    Posted December 9, 2016 9:12pm by Zixing Li
    Zixing Li
    54 Points
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • Accepting Friendships

    0 Answers

  • Nelly Nelly
    Nelly Nelly
    7,134 Points

    setting has_many through with conditions. didn't work

    Posted August 24, 2016 11:47pm by Nelly Nelly
    Nelly Nelly
    7,134 Points
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • Setting Up The State Machine

    1 Answer

  • Nelly Nelly
    Nelly Nelly
    7,134 Points

    Failures in user_friendship_test.rb

    Posted August 24, 2016 8:33pm by Nelly Nelly
    Nelly Nelly
    7,134 Points
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • What is a State Machine?

    1 Answer

  • Matthew Pierce
    Matthew Pierce
    15,779 Points

    undefined local variable or method `user' for #<UserNotifier:0x482a648>

    Posted June 4, 2015 2:36am by Matthew Pierce
    Matthew Pierce
    15,779 Points
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • What is a State Machine?

    1 Answer

  • Matius Kristyanto Mulyono
    Matius Kristyanto Mulyono
    1,855 Points

    assert_select deprecated error message

    Posted April 1, 2015 9:59am by Matius Kristyanto Mulyono
    Matius Kristyanto Mulyono
    1,855 Points
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • Test Factories

    1 Answer

  • Seph Cordovano
    Seph Cordovano
    17,400 Points

    Receiving error due to outdated gem no longer being updated. How to proceed in this series?

    Posted February 14, 2015 11:33am by Seph Cordovano
    Seph Cordovano
    17,400 Points
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • Accepting Friendships

    4 Answers

  • i s
    i s
    83 Points

    Why isn't the friendship.count changing by 2?

    Posted November 2, 2014 11:46pm by i s
    i s
    83 Points
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • Mutual Friendship

    1 Answer

  • Dave Faliskie
    Dave Faliskie
    17,793 Points

    Making a "friendship" between a user and another table

    Posted September 30, 2014 4:59pm by Dave Faliskie
    Dave Faliskie
    17,793 Points
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • Mutual Friendship

    1 Answer

  • Tyler Oliver
    Tyler Oliver
    8,306 Points

    Treebook, not able to set @friend variable for user_friendships

    Posted September 1, 2014 5:37am by Tyler Oliver
    Tyler Oliver
    8,306 Points
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • Test Factories

    1 Answer

  • Dena G
    Dena G
    441 Points

    Please HELP me! I'm stuck on the Mutual Friendships video.

    Posted July 30, 2014 7:27pm by Dena G
    Dena G
    441 Points
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • Mutual Friendship

    1 Answer

  • Dena G
    Dena G
    441 Points

    SyntaxError in UserFriendshipsController#new

    Posted July 30, 2014 6:53pm by Dena G
    Dena G
    441 Points
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • Mutual Friendship

    1 Answer

  • Dan H
    Dan H
    372 Points

    NameError Uninitialized Constant in UserFriendship Model Test

    Posted July 1, 2014 3:20pm by Dan H
    Dan H
    372 Points
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • What is a State Machine?

    2 Answers

  • Justin Banta
    Justin Banta
    3,834 Points

    General question on the Test Factories video

    Posted June 8, 2014 7:35pm by Justin Banta
    Justin Banta
    3,834 Points
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • Test Factories

    0 Answers

  • Lisa Rossiter
    Lisa Rossiter
    3,630 Points

    Getting error

    Posted May 19, 2014 7:00pm by Lisa Rossiter
    Lisa Rossiter
    3,630 Points
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • Test Factories

    7 Answers

  • Kevin Kenger
    Kevin Kenger
    32,834 Points

    Unknown key: :conditions

    Posted May 10, 2014 10:04pm by Kevin Kenger
    Kevin Kenger
    32,834 Points
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • Setting Up The State Machine

    2 Answers

  • Andrew Johnson
    PLUS
    Andrew Johnson
    Courses Plus Student 12,617 Points

    "I'll just copy and paste" Index.html.erb

    Posted March 19, 2014 6:28pm by Andrew Johnson
    Andrew Johnson
    Courses Plus Student 12,617 Points
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • Test Factories

    2 Answers

  • alex morrison
    alex morrison
    135 Points

    Following/Follower model

    Posted March 15, 2014 12:03am by alex morrison
    alex morrison
    135 Points
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • What is a State Machine?

    3 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.