This forum is now read-only. Please use our new forums at discuss.codecademy.com.

588 points
Def1bcef4563419c64f74e499ad401a9?s=140&d=retro
Submitted by
Sullivan Steele
almost 6 years ago

[solved] please help

why won't this work

def welcome -> 
  puts "Welcome to Ruby!" 
end

welcome 

0 votes

permalink

Erase the -> :

def welcome 
puts "Welcome to Ruby!"
 end 
welcome

891 points
A18f3ecaf470903936690251fb131cc3?s=140&d=retro
Submitted by
jagdeep21
over 3 years ago


-1 votes

permalink

You have extra characters in there.

486 points
44236d1c8e7d1111beccc02941fa8a1f?s=140&d=retro
Submitted by
Paulina
almost 6 years ago

4 Comments

Def1bcef4563419c64f74e499ad401a9?s=140&d=retro Sullivan Steele almost 6 years ago

duh thanks

51fc448b548c35c23b000391_597330425 (Hans) Brett McMurdy almost 6 years ago

also your welcome at the end doesnt have "()"

52565eeb80ff337232001e7d_158831513 brennanpringle_4f151ba89c99ab0001018 almost 6 years ago

In Ruby parentheses around method calls are optional.

5308f676548c358f95000820_739579973 †h∑ ©øø∫ Guy over 5 years ago

yeah delete the '->'