<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
<p><%= f.label :email %><br />
<%= f.email_field :email %></p>
<p><%= f.label :password %><br />
<%= f.password_field :password %></p>
<%= end =%>
I am trying to create a basic login form. I want to be able to display an error like "wrong user info" if the username or password is incorrect. I looked at this post here: form_for error messages in Ruby on Rails
but it doesn't seem to work for devise forms?