I've just been playing around with some of the builtin ajax capabilities of rails but I've run into a bit of a roadblock.

So far I've got a drag-n-drop sortable list working with a remote form that adds new items and reloads the list so that the new item is sortable. This all works fine up until a user enters something in the remote form that hits a validation rule!

Has anyone worked out a simple way of handling validation errors for ajax requests?

The only solution I've found so far is here: http://www.bigsmoke.us/ajax-validation-on-rails/ but that looks over complicated and not very rubyish