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

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