Sorry the code is running well in my system. I didnt got any error. I 
have checked the code with my applications.

-- 
Posted via http://www.ruby-forum.com/.