🤑 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
  • Michael Kristensen
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Michael Kristensen
    Full Stack JavaScript Techdegree Graduate 26,251 Points

    Error when passing 4 parameters to the Name initialize method

    Posted September 5, 2019 10:51pm by Michael Kristensen
    .a{fill-rule:evenodd;}techdegree seal-36
    Michael Kristensen
    Full Stack JavaScript Techdegree Graduate 26,251 Points
    • Ruby
    • Ruby Objects and Classes
    • Variables and Methods
    • Variables

    1 Answer

  • Nick Evershed
    Nick Evershed
    6,429 Points

    Code not working

    Posted November 20, 2018 1:44pm by Nick Evershed
    Nick Evershed
    6,429 Points
    • Ruby
    • Ruby Objects and Classes
    • Variables and Methods
    • Variables

    1 Answer

  • nicolasverger3
    nicolasverger3
    3,451 Points

    Where is the return keyword ?

    Posted January 22, 2017 12:17pm by nicolasverger3
    nicolasverger3
    3,451 Points
    • Ruby
    • Ruby Objects and Classes
    • Variables and Methods
    • Variables

    2 Answers

  • MICHAEL P
    MICHAEL P
    5,191 Points

    My code is not passing, when I follow the video. Please help.

    Posted June 29, 2016 2:05am by MICHAEL P
    MICHAEL P
    5,191 Points
    • Ruby
    • Ruby Objects and Classes
    • Variables and Methods
    • Variables

    2 Answers

  • Todd MacIntyre
    Todd MacIntyre
    12,248 Points

    Is initialize a reserved keyword for methods within classes?

    Posted March 2, 2016 3:13am by Todd MacIntyre
    Todd MacIntyre
    12,248 Points
    • Ruby
    • Ruby Objects and Classes
    • Variables and Methods
    • Variables

    1 Answer

  • Radek Noga
    Radek Noga
    2,296 Points

    HINT if you copy and paste the teacher's code

    Posted December 3, 2015 2:46pm by Radek Noga
    Radek Noga
    2,296 Points
    • Ruby
    • Ruby Objects and Classes
    • Variables and Methods
    • Variables

    0 Answers

  • Sean Flanagan
    Sean Flanagan
    33,236 Points

    Ruby Objects and Classes -> Variables

    Posted August 31, 2015 4:46pm by Sean Flanagan
    Sean Flanagan
    33,236 Points
    • Ruby
    • Ruby Objects and Classes
    • Variables and Methods
    • Variables

    2 Answers

  • Vishakha Agarwal
    Vishakha Agarwal
    9,130 Points

    Getting error message

    Posted July 13, 2015 6:49pm by Vishakha Agarwal
    Vishakha Agarwal
    9,130 Points
    • Ruby
    • Ruby Objects and Classes
    • Variables and Methods
    • Variables

    2 Answers

  • federico enrico
    federico enrico
    6,143 Points

    I get an error trying to run the last part of this Variables video

    Posted January 21, 2015 1:14pm by federico enrico
    federico enrico
    6,143 Points
    • Ruby
    • Ruby Objects and Classes
    • Variables and Methods
    • Variables

    1 Answer

  • robrattray
    robrattray
    4,666 Points

    Why the need to initialize and calling methods

    Posted December 18, 2014 11:20pm by robrattray
    robrattray
    4,666 Points
    • Ruby
    • Ruby Objects and Classes
    • Variables and Methods
    • Variables

    1 Answer

  • Adam Zuckerberg
    Adam Zuckerberg
    22,248 Points

    For me, this code doesn't pass unless you pass in the new 4 parameters?

    Posted December 5, 2014 3:30am by Adam Zuckerberg
    Adam Zuckerberg
    22,248 Points
    • Ruby
    • Ruby Objects and Classes
    • Variables and Methods
    • Variables

    4 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.