Scientists agree: Using JSON to bring the richness of the Rails controller and view layers to Ajax requests makes life more enjoyable!
How do you handle an Ajax request whereby the request itself is successful (i.e. it returns a status 200 OK), but the requested operation fails. For example, a user attempts to create a new ActiveRecord object, but the object fails validation and thus doesn’t get saved to the database. The HTTP request was successful, but [...]



