Jquery AJAX: How to display the Flash error message when validation on the server side fails?

Posted by Shripad K on Stack Overflow See other posts from Stack Overflow or by Shripad K
Published on 2010-06-02T12:28:34Z Indexed on 2010/06/02 12:34 UTC
Read the original article Hit count: 221

Filed under:
|
|
|

I am using the Jquery form plugin to submit the form via ajax. I have set up validations on the server side in my models. Now when the validation fails i want to display the same flash[:error] message to the user using ajax. If the validation succeeds I can display the flash[:notice] as it is available after the request is completed. How do i go about displaying flash[:error]?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about ruby-on-rails