Hi, When i printed out fields[2], the outputs are nil. This goes for field[1] and fields[3]. But when i printed out field[0], the outcome is the same as when i printed out 'fields'. May i know what i did wrong? Im using the same code as posted by Mr Gray Nizam -- Posted via http://www.ruby-forum.com/.