Browse files


  • Loading branch information...
1 parent 61bcb1e commit 262ae1a786e51861bdb533a0a12328b419984cb6 @bogdan committed Oct 12, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0
@@ -64,6 +64,9 @@ $('#new_user').ajaxForm();
In order to interact with ajaxsubmit your controller should return JSON structure that match the given convention.
+* If validation failed it should return JSON with `errors` key like: `{errors: {email: "Email is invalid"}}`
+* If validation passed you can handle the flow in javascript callback or path JSON with redirection URL like: {redirect: "/home"}
Here is example with pseudocode:

0 comments on commit 262ae1a

Please sign in to comment.