Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Ruby Basics (Retired) Ruby Methods Method Arguments: Part 2

Chris Beyer
Chris Beyer
969 Points

Ruby Basics multiplication with arguments.

I input:

def multiply(a.b)

end

I get error oops it looks like task 1 is no longer passing. I am not sure why. Does anyone know why this error occurs because the input seems correct?

method.rb
def multiply (a, b)

end

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! Your code works for me if I copy/paste it in the challenge. However, it's important to note that you may not remove the previous subtract method that was defined. Here's a tip from the instructions in the challenge.

Important: In each task of this code challenge, the code you write should be added to the code from the previous task.

This means that you must leave the previous code intact (unless explicitly instructed otherwise) and proceed to the next part.

Hope this helps! :sparkles:

Chris Beyer
Chris Beyer
969 Points

Thank you very much!

Can you give Jennifer a "Best Answer" so that this question appears answered in the Community?

Thanks, Alex

William Li
William Li
Courses Plus Student 26,868 Points

Hi, Alexander Davison thanks for the reminder, it's done.

Next time you come across more answers that deserve the Best Answer mark, feel free to tag me.

Ok!