From: David Masover Date: 2009-04-02T12:30:07+09:00 Subject: Re: ask bout net-ping On Wednesday 01 April 2009 20:40:12 Junior Junior wangsa wrote: > @arr_stat[i]['ipadd'] = node.ipadd [...] > why when i run the code it always says: > > You have a nil object when you didn't expect it! > You might have expected an instance of ActiveRecord::Base. > The error occurred while evaluating nil.[]= I'm guessing @arr_stat[i] is nil at some point. Also, for future reference, Rails raises that particular error quite often. Pasting that would be like pasting "segmentation fault" to a C development group. I'm sure the error included more information than that. But you may want to take this to the Rails group.