sasky621
Joined
50 Experience
0 Lessons Completed
0 Questions Solved
Activity
I have a problem that whenever iam trying to sign_up and leave all fields empty i don't get any errors like "password can't be empty"..
but after refreshing the page and resubmit the same data i get the errors displayed on the page..in short in order to display sign_up errors i need to refresh the sign_up page a couple of times .. how can i solve this .. and i make sure that i have this line "<%= render "devise/shared/error_messages", resource: resource %>" , in "new.html.erb" file .. and the devise shared error partial contains the following code:
<% if resource.errors.any? %>
<%= I18n.t("errors.messages.not_saved",
count: resource.errors.count,
resource: resource.class.model_name.human.downcase)
%>
- <%= message %>
<% resource.errors.full_messages.each do |message| %>
<% end %>
<% end %>