title: Devise log_in errors not showing
body: <p>I have been looking at similar questions but I haven't been able to pinpoint my error.</p>
  
  <p>I have this code in my <code>application.html.erb</code>, and it works when it comes to showing other flash messages (such as "Successful login"):</p>
  
  <pre><code>&lt;% flash.each do |name, msg| %&gt;
    &lt;% if msg.is_a?(String) %&gt;
      &lt;div class="alert alert-dismissible alert-&lt;%= name.to_s == 'notice' ? 'success' : 'danger' %&gt;"&gt;
        &lt;button type="button" class="close" data-dismiss="alert" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
        &lt;%= content_tag :div, msg, :id =&gt; "flash_#{name}" %&gt;
      &lt;/div&gt;
    &lt;% end %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>But regardless of that the errors don't display on sign in for any of my models (I have 3 different models).</p>
  
  <p>This is the response of the requests:</p>
  
  <pre><code>Started POST "/users/sign_in" for 127.0.0.1 at 2017-10-14 16:25:35 -0300
  Processing by Users::SessionsController#create as HTML
    Parameters: {"utf8"=&gt;"✓", "authenticity_token"=&gt;"5yM5EkGw1WVrFsaHm39Em7JkXgu0OZb5FDeO7bJA+SEQBYBybfw7ghbK1WM5I8krbBjP/pRWLF+PG0B2k+Crkw==", "user"=&gt;{"email"=&gt;"user0@gmail.com", "password"=&gt;"[FILTERED]", "remember_me"=&gt;"0"}, "commit"=&gt;"Iniciar sesión"}
    User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "user0@gmail.com"], ["LIMIT", 1]]
  Completed 401 Unauthorized in 107ms (ActiveRecord: 5.0ms)
  
  
  Processing by Users::SessionsController#new as HTML
    Parameters: {"utf8"=&gt;"✓", "authenticity_token"=&gt;"5yM5EkGw1WVrFsaHm39Em7JkXgu0OZb5FDeO7bJA+SEQBYBybfw7ghbK1WM5I8krbBjP/pRWLF+PG0B2k+Crkw==", "user"=&gt;{"email"=&gt;"user0@gmail.com", "password"=&gt;"[FILTERED]", "remember_me"=&gt;"0"}, "commit"=&gt;"Iniciar sesión"}
    Rendering users/sessions/new.html.erb within layouts/application
    Rendered users/sessions/new.html.erb within layouts/application (2.0ms)
    Rendered layouts/_navigation.html.erb (1.0ms)
    Rendered layouts/_messages.html.erb (0.5ms)
  Completed 200 OK in 285ms (Views: 223.4ms | ActiveRecord: 0.0ms)
  </code></pre>
  
  <p>But flash is empty if user/password is wrong or if user hasn't been confirmed yet.</p>
  
  <p>I have redefined my controllers to get them working correctly for multiple models, as explained in the <a href="https://github.com/plataformatec/devise/wiki/How-to-Setup-Multiple-Devise-User-Models" rel="nofollow noreferrer">wiki</a></p>
  
  <pre><code>class Users::SessionsController &lt; Devise::SessionsController
    include Accessible
    skip_before_action :check_user, only: :destroy
  end
  </code></pre>
  
  <p>But I haven't redefined the methods.</p>