title: rails - Devise - Handling - devise_error_messages
body: <p>in my user edit page, there is a line as follows:</p>
  
  <pre><code>&lt;%= devise_error_messages! %&gt;
  </code></pre>
  
  <p>The problem is this does not output errors the standard way that the rest of the app does:</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>My question is, how do I get the devise error message to work like the others that use the flash.each? </p>
  
  <p>Thanks.</p>