[Rails] 0.10 upgrade problem

Michael Koziarski koziarski at gmail.com
Sun Feb 27 01:35:52 GMT 2005


On Sun, 27 Feb 2005 09:30:52 +1100, David van den Berg <dvdberg at mac.com> wrote:
> I'm having problems with the upgrade to 0.10.0
> 
> I get the following error on all my applications
> 
>   NoMethodError in  Heatmap#display
> 
>   Showing /heatmap/display.rhtml where line #11 raised  undefined method
> `each_with_index' for nil:NilClass

This indicates that @arr is nil,  have you accidentally commented out
the section of the controller that prepares it?

> 8:   <body><font size = "2">
> 9:      <table border="2">
> 10:             <tr>
> 11:     <% @arr.each_with_index do |h, i| %>
> 
> I've followed the instructions on upgrading at
> http://manuals.rubyonrails.com/read/book/15
> 
> Any ideas what I'm doing wrong.
> 
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
> 


-- 
Cheers

Koz


More information about the Rails mailing list