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: <div class="dottedSeparator"></div>
159: <h3><%= "What do you think about '%s'?" / @place %></h3>
160: <% end -%>
161: <% form_for([@place, @review = Review.new]) do |f| %>
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: <div class="dottedSeparator"></div>
159: <h3><%= "What do you think about '%s'?" / @place %></h3>
What's this supposed to be? Is that / supposed to be % (for String#%)?
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.<<