Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord