I have a rails remote form_for. For several reasons it is a way better idea to use AJAX to submit the form's contents. If there are errors saving the form I want to be able to render a .js.erb file to the page that updates the error div with a partial that displays all the errors.
If there are no errors I want to be able to just redirect and display a flash message.
Is this possible?