From: Srijayanth Sridhar Date: 2008-07-10T14:25:16+09:00 Subject: Re: Problem with hash in function args.id will return your object_id. I am not sure that's what you want. You want: puts args[:id] Jayanth On Thu, Jul 10, 2008 at 10:18 AM, Skave Rat wrote: > Somehow I'm missing something really basic. Why is following function > now working? > > def foobar(args) > puts args.id > end > > foobar ({:id => "MyID"}) > #=> some random number (e.g. -616990888) > -- > Posted via http://www.ruby-forum.com/. > >