Thanks guys. I was able to solve the problem. Cheers.
-- 
Posted via http://www.ruby-forum.com/.