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

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

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

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

  • 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
    • 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
  • 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
    • Showing results for:
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Arguments
    • Close
  • Tanzila Rafeeq
    Tanzila Rafeeq
    2,936 Points

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

    Posted on Aug 17, 2021 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 on Apr 26, 2021 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 on Dec 15, 2020 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 on Jun 16, 2020 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 on Mar 31, 2020 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 on Jan 11, 2020 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 on Nov 9, 2019 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 on Aug 17, 2019 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 on Feb 27, 2019 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 on Dec 27, 2018 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 on Oct 21, 2018 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 on Jul 25, 2018 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 on Jun 17, 2018 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 on Mar 7, 2018 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 on Mar 6, 2018 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 on Feb 18, 2018 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 on Feb 11, 2018 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 on Jan 17, 2018 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 on Dec 5, 2017 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 on Nov 15, 2017 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 on Oct 24, 2017 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 on Oct 22, 2017 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.