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
  • jitendra goyal
    jitendra goyal
    3,752 Points

    rake aborted! NoMethodError: undefined method `city=' for #<Account:0x007fef60ec49e0>

    Posted March 2, 2016 11:32pm by jitendra goyal
    jitendra goyal
    3,752 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Finding Scopes

    4 Answers

  • jitendra goyal
    jitendra goyal
    3,752 Points

    rake aborted! StandardError: An error has occurred, all later migrations canceled:

    Posted March 2, 2016 11:20pm by jitendra goyal
    jitendra goyal
    3,752 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Finding Control

    1 Answer

  • Maximiliane Quel
    PLUS
    Maximiliane Quel
    Courses Plus Student 55,489 Points

    Challenge does not pass with alternate syntax?

    Posted November 29, 2015 3:33pm by Maximiliane Quel
    Maximiliane Quel
    Courses Plus Student 55,489 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Finding Scopes 2

    3 Answers

  • Chris Underwood
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Chris Underwood
    Full Stack JavaScript Techdegree Student 19,916 Points

    Finding Scopes Code Challenge 2

    Posted June 25, 2015 5:29pm by Chris Underwood
    .a{fill-rule:evenodd;}techdegree
    Chris Underwood
    Full Stack JavaScript Techdegree Student 19,916 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Finding Scopes

    2 Answers

  • Eric Moody
    Eric Moody
    12,373 Points

    Scope question: Trying to find the right syntax to select hampton from first_name

    Posted June 20, 2015 11:34pm by Eric Moody
    Eric Moody
    12,373 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Finding Scopes 2

    1 Answer

  • Sarah A. Morrigan
    Sarah A. Morrigan
    14,329 Points

    custom scope: incomprehensible code challenge

    Posted February 13, 2015 2:14am by Sarah A. Morrigan
    Sarah A. Morrigan
    14,329 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Finding Scopes 2

    3 Answers

  • Jim Withington
    Jim Withington
    12,025 Points

    Could we get a copy of the database that included all of these extra records?

    Posted December 1, 2014 4:35am by Jim Withington
    Jim Withington
    12,025 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Finding Control

    2 Answers

  • Nikola Novakovic
    Nikola Novakovic
    4,171 Points

    ActiveRecords Relation Concept

    Posted November 28, 2014 12:54pm by Nikola Novakovic
    Nikola Novakovic
    4,171 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Advanced Finders

    1 Answer

  • sungwon choe
    sungwon choe
    15,044 Points

    "add_index :accounts, :employees" migration returns SQL syntax error

    Posted September 13, 2014 6:22pm by sungwon choe
    sungwon choe
    15,044 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Advanced Finders

    2 Answers

  • Philip Benton
    Philip Benton
    1,378 Points

    What is the difference between having the : at the beginning or end of a Ruby symbol?

    Posted July 31, 2014 8:56am by Philip Benton
    Philip Benton
    1,378 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Finding Scopes 2

    2 Answers

  • David Gross
    David Gross
    19,443 Points

    Populating the database

    Posted July 23, 2014 4:40pm by David Gross
    David Gross
    19,443 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Finding Control

    2 Answers

  • Nikhil Hira
    Nikhil Hira
    8,081 Points

    Scope Challenge, ActiveRecord

    Posted July 14, 2014 1:17pm by Nikhil Hira
    Nikhil Hira
    8,081 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Finding Scopes 2

    1 Answer

  • Marc Burt
    Marc Burt
    9,828 Points

    Query Interface Challenge

    Posted July 2, 2014 4:39pm by Marc Burt
    Marc Burt
    9,828 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Finding Scopes 2

    2 Answers

  • Kenan Memis
    Kenan Memis
    47,314 Points

    my challenge solution

    Posted June 26, 2014 4:22pm by Kenan Memis
    Kenan Memis
    47,314 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Finding Scopes 2

    2 Answers

  • Charles Li
    PLUS
    Charles Li
    Courses Plus Student 19,041 Points

    Taking this starting query, can you add on code to sort the results by the first_name field?

    Posted June 13, 2014 1:54pm by Charles Li
    Charles Li
    Courses Plus Student 19,041 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Finding Scopes 1

    1 Answer

  • Natansh Pandya
    Natansh Pandya
    2,810 Points

    Scope error

    Posted June 12, 2014 6:47pm by Natansh Pandya
    Natansh Pandya
    2,810 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Finding Scopes 2

    4 Answers

  • Natansh Pandya
    Natansh Pandya
    2,810 Points

    Scope is not giving correct answer?

    Posted June 12, 2014 3:56pm by Natansh Pandya
    Natansh Pandya
    2,810 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Finding Scopes 2

    1 Answer

  • Natansh Pandya
    Natansh Pandya
    2,810 Points

    Scope of the problem

    Posted June 11, 2014 8:17pm by Natansh Pandya
    Natansh Pandya
    2,810 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Finding Scopes 2

    1 Answer

  • Ace Motanya
    Ace Motanya
    31,756 Points

    Build a finder scope called hamptons to find all people with the first_name "Hampton"

    Posted June 4, 2014 12:58am by Ace Motanya
    Ace Motanya
    31,756 Points
    • Ruby
    • ActiveRecord Basics
    • Query Interface
    • Finding Scopes 2

    4 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