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

⚡ CYBER NOVEMBER SALE ⚡ 50% off any plan for 6 months, exclusive to new subscribers.

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

⚡ CYBER NOVEMBER SALE ⚡ 50% off any plan for 6 months, exclusive to new subscribers.

  • 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
    • 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
  • 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
      • • 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
    • Showing results for:
    • Ruby
    • Building Social Features in Ruby on Rails
    • Adding State
    • Close
  • Zixing Li
    Zixing Li
    54 Points

    Writing the user_friendships_controller and model in Rails 5

    Posted on Dec 9, 2016 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 on Aug 24, 2016 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 on Aug 24, 2016 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 on Jun 4, 2015 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 on Apr 1, 2015 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 on Feb 14, 2015 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 on Nov 2, 2014 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 on Sep 30, 2014 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 on Sep 1, 2014 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 on Jul 30, 2014 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 on Jul 30, 2014 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 on Jul 1, 2014 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 on Jun 8, 2014 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 on May 19, 2014 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 on May 10, 2014 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 on Mar 19, 2014 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 on Mar 15, 2014 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.