When moving to Rails 2.3.0RC1 I get an error with concat!? I can’t
figure it out. See the dump below:
ActionView::TemplateError (You have a nil object when you didn’t
expect
it!
You might have expected an instance of Array.
The error occurred while evaluating nil.<<) on line #158 of
app/views/places/show.html.erb:
158:
159:
<%= “What do you think about ‘%s’?” / @place %>
160: <% end -%>
161: <% form_for([@place, @review = Review.new]) do |f| %>
I’ve overwritten the method to NOT return nil in any case. However the
error seems not to be in those calls. It’s more in blocks or
something. See below:
Showing app/views/layouts/_header.html.erb where line #4 raised:
You have a nil object when you didn’t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.<<
Extracted source (around line #4):
1:
2:
3:
4: <% form_tag(search_places_path, :method => :get) do -%>
5: <% with_options(:scope => [:form, :search_place]) do |i| -%>
6:
7:
Trace of template inclusion: app/views/layouts/site.html.erb
RAILS_ROOT: /Users/joost/Workspace/project
Application Trace | Framework Trace | Full Trace