When there is no HTTP_HOST variable, code like
<b>Hello <%= @name %></b>
   <% cache do %>
     All the topics in the system:
     <%= render_collection_of_partials "topic", Topic.find_all
%>
   <% end %>
returns a "undefined method "+" for nil:NilClass" exception.
I''d hate to write code like:
<% foo=capture do %>
     All the topics in the system:
     <%= render_collection_of_partials "topic", Topic.find_all
%>
<% end %>
<b>Hello <%= @name %></b>
<% if @request.env[''HTTP_HOST''] %>
   <% cache do %>
     <%= foo %>
   <% end %>
<% else %>
   <%= foo %>
<% end %>
How do the others here handle this?
-- 
Justin Dossey