I’ve been trying to find a simple, clean way to rollback a model in a RESTAdapter application if the record returns an error.
For example I have a model that I want to edit. If the REST request to put/update that model’s record on the server fails the current model’s view still reflects the changes made during the update. I’ve been able to successfully flash a warning using the “becameError” in the model, but I’d like a way rollback the failed model to display the data it last received before making a request to the server.
EDIT: Fri Apr 19 12:55:38 PDT 2013
Just read on the github site’s “Roadmap” section that Handling Error States is not yet implemented. Guess, I should have read the documentation more clearly. I would still like to hear from anyone else that has figured out creative ways of handling error states.