Skip to main content

🚀 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
  • Winston Quin
    Winston Quin
    10,359 Points

    Why does the correct answer include an "=" sign? I never saw this in the video.

    Posted October 3, 2017 8:25pm by Winston Quin
    Winston Quin
    10,359 Points
    • Ruby
    • Ruby Basics (Retired)
    • Ruby Methods
    • Method Returns: Part 1

    3 Answers

  • Jessica Pace
    PLUS
    Jessica Pace
    Courses Plus Student 274 Points

    Why is my method not working to produce the remainder of a divided by b?

    Posted July 13, 2017 6:31pm by Jessica Pace
    Jessica Pace
    Courses Plus Student 274 Points
    • Ruby
    • Ruby Basics (Retired)
    • Ruby Methods
    • Method Returns: Part 1

    2 Answers

  • Eric Moen
    PLUS
    Eric Moen
    Courses Plus Student 2,348 Points

    I can't see to get this right https://teamtreehouse.com/library/ruby-basics/ruby-methods/method-returns-part-1

    Posted April 7, 2017 2:27pm by Eric Moen
    Eric Moen
    Courses Plus Student 2,348 Points
    • Ruby
    • Ruby Basics (Retired)
    • Ruby Methods
    • Method Returns: Part 1

    2 Answers

  • christian rylander
    christian rylander
    4,609 Points

    Ruby Basics

    Posted August 16, 2016 8:09pm by christian rylander
    christian rylander
    4,609 Points
    • Ruby
    • Ruby Basics (Retired)
    • Ruby Methods
    • Method Returns: Part 1

    1 Answer

  • JonPaul Ferzacca
    JonPaul Ferzacca
    1,011 Points

    Exiting irb how do i get out of irb

    Posted March 30, 2016 2:44am by JonPaul Ferzacca
    JonPaul Ferzacca
    1,011 Points
    • Ruby
    • Ruby Basics (Retired)
    • Ruby Methods
    • Method Returns: Part 1

    1 Answer

  • mustafa attaie
    mustafa attaie
    8,068 Points

    Not sure what I'm doing wrong with remainders and dividing

    Posted March 16, 2016 5:49pm by mustafa attaie
    mustafa attaie
    8,068 Points
    • Ruby
    • Ruby Basics (Retired)
    • Ruby Methods
    • Method Returns: Part 1

    1 Answer

  • Mahmoud Khairallah
    Mahmoud Khairallah
    788 Points

    Ruby Basics --> Method Returns: Part 1 --> Task #2

    Posted March 9, 2016 1:20am by Mahmoud Khairallah
    Mahmoud Khairallah
    788 Points
    • Ruby
    • Ruby Basics (Retired)
    • Ruby Methods
    • Method Returns: Part 1

    1 Answer

  • Daniel Hulin
    Daniel Hulin
    1,852 Points

    challenge task 2 of 2. how to get remainder.

    Posted December 19, 2015 9:51pm by Daniel Hulin
    Daniel Hulin
    1,852 Points
    • Ruby
    • Ruby Basics (Retired)
    • Ruby Methods
    • Method Returns: Part 1

    1 Answer

  • DOHOON KIM
    DOHOON KIM
    7,669 Points

    I am not sure what I am doing wrong

    Posted November 19, 2015 10:57pm by DOHOON KIM
    DOHOON KIM
    7,669 Points
    • Ruby
    • Ruby Basics (Retired)
    • Ruby Methods
    • Method Returns: Part 1

    1 Answer

  • FRANCIS F V ROBERTO
    FRANCIS F V ROBERTO
    3,348 Points

    # I'm having an error here.why is it so? def add(a, b) puts a + b end add(1, 2)

    Posted November 5, 2015 5:55am by FRANCIS F V ROBERTO
    FRANCIS F V ROBERTO
    3,348 Points
    • Ruby
    • Ruby Basics (Retired)
    • Ruby Methods
    • Method Returns: Part 1

    2 Answers

  • Shailender Kumar
    Shailender Kumar
    693 Points

    Getting error when executing the addition code

    Posted June 7, 2015 6:58am by Shailender Kumar
    Shailender Kumar
    693 Points
    • Ruby
    • Ruby Basics (Retired)
    • Ruby Methods
    • Method Returns: Part 1

    1 Answer

  • SY LOC
    SY LOC
    3,233 Points

    Create a method called "add" that takes two arguments and returns the sum of two numbers.

    Posted May 23, 2015 6:19am by SY LOC
    SY LOC
    3,233 Points
    • Ruby
    • Ruby Basics (Retired)
    • Ruby Methods
    • Method Returns: Part 1

    1 Answer

  • Kody Dibble
    Kody Dibble
    2,554 Points

    Creating Ruby Methods...Confusion.

    Posted February 17, 2015 3:04pm by Kody Dibble
    Kody Dibble
    2,554 Points
    • Ruby
    • Ruby Basics (Retired)
    • Ruby Methods
    • Method Returns: Part 1

    2 Answers

  • Eric McGee
    Eric McGee
    1,324 Points

    Create a method called "add" that takes two arguments and returns the sum of two numbers.

    Posted January 17, 2015 1:43am by Eric McGee
    Eric McGee
    1,324 Points
    • Ruby
    • Ruby Basics (Retired)
    • Ruby Methods
    • Method Returns: Part 1

    2 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