title: undefined method `safe_concat' for []:Array in rails 3
body: <p>I am trying to execute a flash partial like the following:</p>
  
  <pre><code>&lt;% flash.each do |key, value| %&gt;
    &lt;div class="flash &lt;%= "#{key}" %&gt;"&gt;&lt;%= "#{value}" %&gt;&lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>And am getting the following error:</p>
  
  <pre><code>undefined method `safe_concat' for []:Array
  </code></pre>
  
  <p>The partial is being updated via an ajax request as follows:</p>
  
  <pre><code>page.replace_html "flash_messages", :partial =&gt; 'layouts/flash', :locals =&gt; { :flash =&gt; flash }
  </code></pre>
  
  <p>Any ideas? I have never seen something like this before.</p>
  
  <p>Thanks.</p>