From: Ammar Ali Date: 2010-07-12T06:58:13+09:00 Subject: Re: How to pass a hash as a param to a method called through eval? --0016367d6298941a09048b23bab8 Content-Type: text/plain; charset=UTF-8 On Mon, Jul 12, 2010 at 12:41 AM, Alex Stahl wrote: > Thanks. You're actually the second response to suggest doing it that > way (w/ eval). But it doesn't work for me. > > Though, the first respondent is using 1.9.1, and I've got 1.8.7 at the > moment. Are you by chance also on 1.9.1? On 1.8.7 use yermej's suggestion, without the interpolation, if you choose to stick with eval despite the excellent suggestions to use send instead: eval("#{call['action']}(call['params'])") Cheers, Ammar --0016367d6298941a09048b23bab8--