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

    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.