Skip to main content

🛍️ BLACK FRIDAY get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

🚀 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! 🤑

  • 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
  • Peter Lawless
    Peter Lawless
    24,404 Points

    Singular/Plural model names in Rails

    Posted November 27, 2016 2:17pm by Peter Lawless
    Peter Lawless
    24,404 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Relationships

    1 Answer

  • Marwan Bakr
    Marwan Bakr
    7,579 Points

    What am I doing wrong?

    Posted November 18, 2016 6:00pm by Marwan Bakr
    Marwan Bakr
    7,579 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Relationships

    1 Answer

  • David Thrower
    David Thrower
    6,693 Points

    I am confused by the addition of the blogpost_id. What should I be looking for concept-wise in the rails docs?

    Posted August 15, 2016 3:41am by David Thrower
    David Thrower
    6,693 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Relationships

    2 Answers

  • Jack Riminton
    Jack Riminton
    651 Points

    Error for the singular form of "belongs_to"

    Posted June 19, 2016 4:58pm by Jack Riminton
    Jack Riminton
    651 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Relationships

    1 Answer

  • David Mollert
    David Mollert
    442 Points

    belongs_to singular version of key

    Posted May 14, 2016 3:37pm by David Mollert
    David Mollert
    442 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Relationships

    2 Answers

  • vishruth Janagama
    vishruth Janagama
    1,498 Points

    relationships

    Posted May 10, 2016 8:07pm by vishruth Janagama
    vishruth Janagama
    1,498 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Relationships

    1 Answer

  • Justin Keller
    Justin Keller
    15,742 Points

    Looking at my code, how can the "`belongs_to` always wants the singular version of the relationship" be fixed?

    Posted September 14, 2015 9:25pm by Justin Keller
    Justin Keller
    15,742 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Relationships

    1 Answer

  • Binu Alexander
    Binu Alexander
    4,081 Points

    What is wrong here ?

    Posted May 14, 2015 4:39am by Binu Alexander
    Binu Alexander
    4,081 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Relationships

    1 Answer

  • Rafael Flores
    PLUS
    Rafael Flores
    Courses Plus Student 22,056 Points

    Migrations and relationships exercise

    Posted March 16, 2015 2:46pm by Rafael Flores
    Rafael Flores
    Courses Plus Student 22,056 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Relationships

    1 Answer

  • Adam Zuckerberg
    Adam Zuckerberg
    22,248 Points

    Is there an error in this that you need "blog_post" to pass even though the class name is "BlogPost" w/ no underscore?

    Posted November 30, 2014 3:00pm by Adam Zuckerberg
    Adam Zuckerberg
    22,248 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Relationships

    1 Answer

  • Ralph Johnson
    Ralph Johnson
    10,408 Points

    What am I missing here?

    Posted November 5, 2014 4:27pm by Ralph Johnson
    Ralph Johnson
    10,408 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Relationships

    4 Answers

  • kekl
    kekl
    15,405 Points

    Relationships code challenge 2: Problem

    Posted October 27, 2014 5:51pm by kekl
    kekl
    15,405 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Relationships

    1 Answer

  • Darnell Thacker
    Darnell Thacker
    951 Points

    Stage 2 Migrations and Relationships

    Posted July 10, 2014 7:59pm by Darnell Thacker
    Darnell Thacker
    951 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Relationships

    2 Answers

  • Damian Sieczkowski
    Damian Sieczkowski
    9,730 Points

    has_many and belongs_to challenge not passing

    Posted July 4, 2014 8:21pm by Damian Sieczkowski
    Damian Sieczkowski
    9,730 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Relationships

    6 Answers

  • Natansh Pandya
    Natansh Pandya
    2,810 Points

    Relationships problem

    Posted June 11, 2014 9:30am by Natansh Pandya
    Natansh Pandya
    2,810 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Relationships

    1 Answer

  • Michael Mykytyn
    Michael Mykytyn
    23,440 Points

    Active Record Relationship challenge

    Posted May 29, 2014 12:38pm by Michael Mykytyn
    Michael Mykytyn
    23,440 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Relationships

    3 Answers

  • Teo Inke
    Teo Inke
    4,403 Points

    What's wrong?

    Posted May 27, 2014 5:04pm by Teo Inke
    Teo Inke
    4,403 Points
    • Ruby
    • ActiveRecord Basics
    • Migrations and Relationships
    • Relationships

    2 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