If you already know it has to be an integer, use ".to_i", or "Integer()" 
in the appropriate places.

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