title: Handling errors and flash messages when using ajax form in devise
body: <p>I am using devise, submitting all devise forms like sign up, login, forgot password forms in ajax way by adding remote: true.
  How I can handle displaying error messages and flash messages.</p>