From: "Jan E." Date: 2012-05-11T20:40:54+09:00 Subject: Re: syntax error, unexpected ',' , expecting ')' Hi, David Acosta wrote in post #1060379: > Hello people, i am new at ruby and ror developing and i need your help > with this: > > i got this code > > > class Trabajo > > def saludar(nombre) > > puts "Hola #{nombre}" > yield (("Fulano,32", "lol")) > > end > > [...] > > ok, it is easy but i always got the same error: syntax error, unexpected > ',' , expecting ')' could some of you help me, i think the code it's > ok. > > I would be glad for your help.. The expression (("Fulano,32", "lol")) isn't valid Ruby. What did you want to do? If you wanted to put the block arguments in paranthesis, you need *single* paranthesis directly after the "yield" (without any space): yield("Fulano,32", "lol") But you can actually leave out the paranthesis. -- Posted via http://www.ruby-forum.com/.