🤑 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
  • 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.

    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.