Re: Newbie -- Migration Error

Frederick Cheung
2009-06-12T17:49:52Z

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

> `map_property''
> /var/www/apps/quickidx/releases/20080519171438/lib/tasks/idx.rake:84
> /var/www/apps/quickidx/releases/20080519171438/lib/quickidx.rb:142:in
> `parse''
> /var/www/apps/quickidx/releases/20080519171438/lib/quickidx.rb:136:in
> `parse''
> /var/www/apps/quickidx/releases/20080519171438/lib/tasks/idx.rake:52
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:544:in
`execute''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in
`execute''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in
> `invoke_with_call_chain''
> /usr/lib/ruby/1.8/thread.rb:135:in `synchronize''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
> `invoke_with_call_chain''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in
> `invoke_prerequisites''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in
> `invoke_prerequisites''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in
> `invoke_with_call_chain''
> /usr/lib/ruby/1.8/thread.rb:135:in `synchronize''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
> `invoke_with_call_chain''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in
`invoke_task''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in
`top_level''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in
`top_level''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
> `standard_exception_handling''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in
`top_level''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
> `standard_exception_handling''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run''
> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
> /usr/bin/rake:16
>
> I''m new at Ruby on Rails but know that we are running 2.0.2  and
this
> would be the first time we have ever seen this error.
>
> Anyone able to diagnose? Thanks much
> --
> Posted viahttp://www.ruby-forum.com/.