So there are tons of articles about how to do this, but certainly there's a best practice...and I don't know enough to filter out silly solutions, good ones, and best ones.
I simply want to submit my forms via ajax (in a dialog) and get the errors back just like I would without using ajax...meaning I like the rails standard error handeling/flash messages/label classes.
- Is the best way to reload the entire partial?
- Is the best way to use .js.erb (or coffee) for partial stuff? (If so, can you explain how to use these partials?
- Is the best way to parse JSON back into the form somehow?
What else am I missing in my [limited] knowledge base?