In my application.html.erb file, I have
<% flash.each do |key,msg| %>
<div class="message">
<%= content_tag :div, msg %>
</div>
<% end %>
Is there a way to make devise display it's error messages in there?
When I add <%= devise_error_messages! %>
I get a undefined local variable or method 'resource'
error.