Re: Newbie -- Migration Error

Paul Lynch
2009-06-12T18:00:36Z

Look at line 16 of sfar_commercial.rb.  The error indicates that some
variable (or return value) is nil when then code was expecting an
integer.  My guess is that it was trying to index an array with nil
(hence the reference to ''[]'').

On Jun 12, 1:54 pm, Caroline Blaker
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
> Frederick Cheung wrote:
> > On Jun 12, 6:30 pm, Caroline Blaker
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
> > wrote:
> >> ** Invoke idx:load_properties (first_time)
> >> ** Execute idx:load_properties
> >> ** Execute idx:update_db
> >> rake aborted!
> >> no implicit conversion from nil to integer
> >>
/var/www/apps/quickidx/releases/20080519171438/lib/idx/sfar_commercial.rb:1 6:in
> >> `[]''
> >>
/var/www/apps/quickidx/releases/20080519171438/lib/idx/sfar_commercial.rb:1 6:in
>
> > Have you had a look at the code here ?
>
> > Fred
>
> Yes, but as a newbie, errors cause and solutions don''t just, you
know,
> jump off the page.
> Plus, I didn''t build this system but am assigned to maintain it,
so
> every new thing is just that. A new thing. To me it looks like "1
space
> 6" in array. But what does that mean and how do I fix it? I''m
not trying
> to look stupid. I''m just trying to get my work done.
>
> thanks for taking the time to help..
> --
> Posted viahttp://www.ruby-forum.com/.