Something wrong with my Devise gem

I'm using Ruby on Rails and the Devise gem.

At first, everything was fine. The views are like the below, and I have failure flash.

But, I don't know how, someday, the Devise is not working right. The views turn out to be ugly and no more failure flash. Like below.

Does anybody knows how. I don't change the files in app/views/devise. Thank you!


Devise has not stopped working. The views look different because you have added Bootstrap to your application.

The first screenshot is with plain HTML without any css and second screenshot is with Bootstrap css applied on the pure HTML elements.

As for the flash messages:

Make sure that you have following code in the app/views/layouts/application.html.erb

  <% flash.each do |name, msg| %>
    <%= content_tag :div, msg, class: "alert alert-info" %>
  <% end %>

It seems that you add some gems, like


they may affect your original css style, try to disable them and try again.

Need Your Help

implement MuPdf in IOS App

ios iphone mupdf

I want to implement MuPdf in my application.