Yes I was read this message before write my post. I'm quite new in Ruby and not understand this code :( actually I understand what this code doing but I don't understand how I can use this code in my project. Thanks for reply -- Posted via http://www.ruby-forum.com/.