> Thanks martin for your response. I've tried it with ruby and it's OK. > Actually my objective is to run it with JRuby, but the same code is > giving error: > at (unknown).(unknown)(Unknown Source) > at #<Class:01x114025>.method_missing(<unknown>:1) > at (unknown).(unknown)(:1) > > Any suggestion? Upgrade? There were problems with method_missing in older versions of JRuby. I don't know what version you're using, but I would suggest 1.2. -- Mark.