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

Kenny Moreno
Kenny Moreno
3,406 Points

Problem with Ruby

'oop! it looks like task 1 is no longer passing'' I am getting this message with Ruby Basics challenge of Method and with Array. please help thanks!

This code works for subtract: def subtract(num1, num2) end but... for multiplication it sending errors. Create a method called "multiply" that takes two arguments. def multiply(num1, num2) end this does not work!

I think you need specify what exactly you dont understand about it.

1 Answer

Reynaldo Bucio
Reynaldo Bucio
9,824 Points

I had the same problem, just make sure your arguments are the same for both methods.

def subtract( arg1, arg2 )
end

def multiply( arg1, arg2 )
end