% if user.errors.any? %>
<%= pluralize(user.errors.count, 'error') %> prohibited this user from being saved:
<% user.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% end %>
<% unless controller.controller_name == 'users' %>
<% end %>
<% unless controller.controller_name == 'users' %>
<% end %>
<%= link_to(t('.cancel'), action: 'index') %>
<%= t('.or') %>
<%= submit_tag(t('.save'), class: 'btn btn-success') %>