Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

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
  • Tanzila Rafeeq
    Tanzila Rafeeq
    2,936 Points

    i ran my code and it does not work can somebody help??

    Posted August 17, 2021 4:23pm by Tanzila Rafeeq
    Tanzila Rafeeq
    2,936 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    2 Answers

  • isaiahnarraway
    isaiahnarraway
    8,677 Points

    My say method is invalid?

    Posted April 26, 2021 8:12pm by isaiahnarraway
    isaiahnarraway
    8,677 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    1 Answer

  • sarah haddon
    sarah haddon
    144 Points

    Hi! I get "stack level too deep" when I try to push def say(whatever) puts say("Ruby") whatever = "Ruby" end

    Posted December 15, 2020 11:40pm by sarah haddon
    sarah haddon
    144 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    1 Answer

  • Verity Onions
    Verity Onions
    541 Points

    I am stuck on the method challenge. It says - undefined local variable or method `ruby' for main:Object please advise.

    Posted June 16, 2020 1:11pm by Verity Onions
    Verity Onions
    541 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    1 Answer

  • Syd Takeshta
    Syd Takeshta
    2,439 Points

    "Stack level too deep" What does that mean?

    Posted March 31, 2020 9:19am by Syd Takeshta
    Syd Takeshta
    2,439 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    1 Answer

  • Pui Lun Christin C Hebron
    Pui Lun Christin C Hebron
    5,693 Points

    Define a method named say. The say method should take one parameter (name the parameter whatever you want). In the say m

    Posted January 11, 2020 7:09pm by Pui Lun Christin C Hebron
    Pui Lun Christin C Hebron
    5,693 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    5 Answers

  • Mary Nguyen
    Mary Nguyen
    459 Points

    I keep getting 'undefined local object...' Please provide my with the correct answer to this quiz,

    Posted November 9, 2019 2:28pm by Mary Nguyen
    Mary Nguyen
    459 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    1 Answer

  • Joshua Woods
    Joshua Woods
    2,224 Points

    Dont understand

    Posted August 17, 2019 3:47am by Joshua Woods
    Joshua Woods
    2,224 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    2 Answers

  • Ian Dunn
    Ian Dunn
    1,178 Points

    def say(text) puts text+"Ruby" end say("Hello...") Not sure what I am doing wrong? It works in the console?

    Posted February 27, 2019 9:40pm by Ian Dunn
    Ian Dunn
    1,178 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    3 Answers

  • Saadia Fattah
    Saadia Fattah
    1,939 Points

    In this challenge it says to pass the string "Ruby" as an argument I don't understand what it means?

    Posted December 27, 2018 7:39pm by Saadia Fattah
    Saadia Fattah
    1,939 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    2 Answers

  • Liam Grossman
    Liam Grossman
    252 Points

    Hi there. I keep getting a error saying I didn't define a method. I did what was is the video?

    Posted October 21, 2018 8:18pm by Liam Grossman
    Liam Grossman
    252 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    1 Answer

  • Adham Hammoud
    Adham Hammoud
    738 Points

    I couldn't answer this question, can please tell me the solution? What is Say.Say !!

    Posted July 25, 2018 2:42am by Adham Hammoud
    Adham Hammoud
    738 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    1 Answer

  • jamaleverett
    PLUS
    jamaleverett
    Courses Plus Student 510 Points

    I'm not really sure what I am missing here. It says that I have not defined say but my syntax is correct

    Posted June 17, 2018 9:55pm by jamaleverett
    jamaleverett
    Courses Plus Student 510 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    1 Answer

  • Joseph Silva
    Joseph Silva
    2,140 Points

    Define a method named say. say should take one parameter (name the parameter whatever you want). In the say method body,

    Posted March 7, 2018 11:06pm by Joseph Silva
    Joseph Silva
    2,140 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    2 Answers

  • MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points

    Method name won't return any value when it is called.

    Posted March 6, 2018 5:47pm by MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    1 Answer

  • Billy Ng
    Billy Ng
    5,567 Points

    it wont work

    Posted February 18, 2018 5:27pm by Billy Ng
    Billy Ng
    5,567 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    1 Answer

  • Ami Lau
    Ami Lau
    8,067 Points

    [SOLVED] I added one parameter in the say method, but it will not execute.

    Posted February 11, 2018 11:02am by Ami Lau
    Ami Lau
    8,067 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    1 Answer

  • Alex Ramirez
    Alex Ramirez
    1,885 Points

    Trouble with Ruby challenge

    Posted January 17, 2018 5:35am by Alex Ramirez
    Alex Ramirez
    1,885 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    2 Answers

  • Ben Santen
    Ben Santen
    1,998 Points

    i can't pass this challenge

    Posted December 5, 2017 9:41pm by Ben Santen
    Ben Santen
    1,998 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    1 Answer

  • Nadia Masiero
    Nadia Masiero
    3,468 Points

    Defining a Method in Ruby

    Posted November 15, 2017 1:28pm by Nadia Masiero
    Nadia Masiero
    3,468 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    1 Answer

  • Brent Rainwater
    Brent Rainwater
    3,802 Points

    nothing is working on this one

    Posted October 24, 2017 5:26pm by Brent Rainwater
    Brent Rainwater
    3,802 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    1 Answer

  • Arielle Hale
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Arielle Hale
    Python Development Techdegree Student 1,571 Points

    say.rb - I don't know what I'm doing wrong

    Posted October 22, 2017 8:43am by Arielle Hale
    .a{fill-rule:evenodd;}techdegree
    Arielle Hale
    Python Development Techdegree Student 1,571 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments

    8 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