This is a live demo of this pull request that changes some edge cases in how rails process errors.
With this patch we can build a web form that can submits itself with ajax in more easy way.
100 lines of code AjaxSubmit library
Play around this form validation and ensure it works with ajax entirely
Demo source codeBack