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 Ruby Syntax Method Arguments

Alex Ramirez
Alex Ramirez
1,885 Points

Trouble with Ruby challenge

Hello,

I have felt that I have done for the most part everything right. Please let me know, what I need to change and improve for next time around.

Thank you!

say.rb
def say(nice)
  puts "waiting..."
  puts "done..."
  puts nice




end

ruby say.rb

2 Answers

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

Clayton is correct that there should only be one call to puts.

Also it looks like you actually included ruby say.rb in your Ruby code, which isn't valid. ruby say.rb is what you would type in the console to run say.rb, if you were writing this code in a workspace or on your computer. But since this is a code challenge, you don't have to worry about that; all you have to do is write the Ruby code, and we'll run it for you when you submit it.

Instead, you need to make a call to the say method: say("Ruby")