This has been asked before but I didn’t find an elegant solution. How
do you display validations errors when you’re doing a remote_format_for
(or in my case form_for with UJS)
This is what I came up with in the partial but there was to be a more
elegant solution also this displays the field names with underscores,
the flash[:notice] way seems to display cleaned up business named
<% @user.errors.each do |key,value| %>
<%= key %> <%= value %>
<% end -%>
Thanks,
GP