🤑 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

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

    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.