Hi, let's imagine a method "my_method()" whic allows any number of parameters. 
And I need to create those parameters list in the following way:

  lalalala = false
  if lalalala
    params = ":user, 'alice', 1456"
  else
    params = ":user, 0000"
  end

After it I must invoke the method with "params" string as parameters.
I expected that the following could work but it fails:

  my_object.my_method(eval(params))
  => SyntaxError: (eval):1: syntax error, unexpected ',', expecting $end
    :user, 0000
          ^


So I don't understand how to use eval to achieve it. Any help please? Thanks a 
lot.



-- 
IƱaki Baz Castillo <ibc / aliax.net>