I should thank you three for the solution. It works in the manner Jesús 
has posted. Thank you all.
-- 
Posted via http://www.ruby-forum.com/.