title: Styling form error message - bootstrap/rails
body: <p>The error messages for my rails form look terrible with bootstrap. Does anyone know a solution for better (nice looking) error messages? I use Rails and Bootstrap.</p>
  
  <p>My form (it's a helper) is like this:</p>
  
  <pre><code>&lt;%= form_for(@user) do |f| %&gt;
    &lt;% if @user.errors.any? %&gt;
      &lt;div id="error_explanation"&gt;
        &lt;h2&gt;&lt;%= pluralize(@user.errors.count, "error") %&gt; prohibited this user from being saved:&lt;/h2&gt;
  
        &lt;ul&gt;
        &lt;% @user.errors.full_messages.each do |msg| %&gt;
          &lt;li&gt;&lt;%= msg %&gt;&lt;/li&gt;
        &lt;% end %&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;% end %&gt;
  
    &lt;div class="form-inline"&gt;
      &lt;%= f.text_field :email, class:'input-large', placeholder:'Test' %&gt;
  &lt;!--   &lt;/div&gt;
    &lt;div class="actions"&gt; --&gt;
      &lt;%= f.submit class:'btn btn-large btn-success' %&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/dzCuU.jpg" alt="The error message"></p>