<% if @user.errors.any? %>
<% if @user %> <% if @user.errors.count > 0 %>
Sono stati rilevati <%= (@user.errors.count) %> errori.
<% end %> <% end %>
<% end %>