2009/4/16 Sijo Kg <sijo / maxxion.com>: > Hi > I have > > ¨Âåæ çåôßãïíðáîùßäåôáéìóßáòòá> ¨Â îé> ¨Âòò ÛÝ éæ ã®îéì¿ > ¨Â®îéì®ôéíåó ûáòò®ðõó訢¢©ý ºÛ§á§¬§â§Ý > ¨Âîä What weird logic is that? Basically you can replace the method with def get_company_details_array ['',''] end > ¨Âòò Û§áâã§çåôßãïíðáîùßäåôáéìóßáòòá> ¨Âõôáòò®éîóðåã> > What I expected here is ["abc","",""] But I am getting error > array.rb:7:in `+': can't convert Fixnum into Array (TypeError) > ¨Âòïáòòáù®ò⺷ > > Could anybody please correct the code? Hint: Fixnum#times returns the number. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/