🤑 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
  • Fraser Henderson
    Fraser Henderson
    56 Points

    video frozen, flushed chrome cashe, restarted program, restarted computer , frozen since yesterday

    Posted February 27, 2024 10:42am by Fraser Henderson
    Fraser Henderson
    56 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    0 Answers

  • alexx1000
    alexx1000
    16,187 Points

    Hello there! I'm in the Ruby Basics class doing the methods.rb challenge and I can't seem to get the answer right...

    Posted March 2, 2021 9:09pm by alexx1000
    alexx1000
    16,187 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    3 Answers

  • M J
    M J
    7,322 Points

    How to make a method return a particular value (Ruby)?

    Posted July 25, 2020 3:27pm by M J
    M J
    7,322 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • M J
    M J
    7,322 Points

    How to make a method return a particular value?

    Posted July 25, 2020 3:24pm by M J
    M J
    7,322 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Steve Rogers
    Steve Rogers
    3,285 Points

    methods and arguments

    Posted October 31, 2019 4:23pm by Steve Rogers
    Steve Rogers
    3,285 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    3 Answers

  • Aparna Balasubramanian
    Aparna Balasubramanian
    2,483 Points

    Define a method named three that always returns the number 3. Also define a method named five that always returns the nu

    Posted September 30, 2019 9:47am by Aparna Balasubramanian
    Aparna Balasubramanian
    2,483 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    2 Answers

  • Chris Drummond
    Chris Drummond
    1,469 Points

    Unsure about this one

    Posted June 5, 2019 12:22am by Chris Drummond
    Chris Drummond
    1,469 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Katie Urie
    Katie Urie
    208 Points

    def three(number) number = 3 end puts ("3") def five(number) number = 5 end puts ("5")

    Posted April 30, 2019 7:54pm by Katie Urie
    Katie Urie
    208 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Hunter Wierstra
    Hunter Wierstra
    7,454 Points

    I can't figure out Ruby-Method Return Values Challenge

    Posted April 22, 2019 8:06pm by Hunter Wierstra
    Hunter Wierstra
    7,454 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Derek Hutson
    Derek Hutson
    9,740 Points

    Weird question.. what am I doing wrong?

    Posted March 18, 2019 6:38pm by Derek Hutson
    Derek Hutson
    9,740 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Christopher Davis
    Christopher Davis
    8,555 Points

    I'm confused by how to always return the number 3 or 5 here.

    Posted January 24, 2019 4:22pm by Christopher Davis
    Christopher Davis
    8,555 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • yahav rosner
    yahav rosner
    4,304 Points

    can you help me?

    Posted July 23, 2018 10:35am by yahav rosner
    yahav rosner
    4,304 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Jarvis Jennings
    PLUS
    Jarvis Jennings
    Courses Plus Student 358 Points

    I do not understand why I cannot define the Method with Integers

    Posted April 26, 2018 2:33pm by Jarvis Jennings
    Jarvis Jennings
    Courses Plus Student 358 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Kristen Kerchhoff
    Kristen Kerchhoff
    1,895 Points

    Methods working locally but in online editor

    Posted March 19, 2018 3:16pm by Kristen Kerchhoff
    Kristen Kerchhoff
    1,895 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points

    The program isn't recognizing my arguments.

    Posted March 7, 2018 12:01am by MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points

    The method name is not returning any number

    Posted March 6, 2018 5:45pm by MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    2 Answers

  • Fin Muir
    Fin Muir
    1,108 Points

    Help me please

    Posted February 3, 2018 6:34am by Fin Muir
    Fin Muir
    1,108 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Ben Santen
    Ben Santen
    1,998 Points

    I cant pass this challenge

    Posted December 6, 2017 4:42pm by Ben Santen
    Ben Santen
    1,998 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Sherman Edwards
    Sherman Edwards
    937 Points

    Whats wrong

    Posted November 13, 2017 7:03pm by Sherman Edwards
    Sherman Edwards
    937 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

  • Mika Laakso
    Mika Laakso
    4,222 Points

    wrong number of arguments (given 0, expected 2)

    Posted November 7, 2017 9:36pm by Mika Laakso
    Mika Laakso
    4,222 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    2 Answers

  • Samuel Joseph
    Samuel Joseph
    5,406 Points

    I am trying to return 5, but it keeps telling me that I am wrong. def five(b) b = 5 return b end

    Posted November 6, 2017 1:02am by Samuel Joseph
    Samuel Joseph
    5,406 Points
    • Ruby
    • Ruby Basics
    • Ruby Syntax
    • Method Return Values

    1 Answer

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.