To easily AJAXify your web app with Rails, first you must add
true to your form tag, then you must make your controller respond to
4 lines of code that need to be added to get it working.
If you want to write more complex web apps like one that dynamically renders an edit form
library yourself as opposed to just having Rails use it in the background. You
need to create a
PATCH request using the
$.ajax(...); method. You would also have to render the form using
jQuery and you can get rid of the form with the AJAX success callback.