Sending POST requests in Rails 5.1 without jQuery
Since the jQuery library was removed as a hard dependency in Rails 5.1, it’s a little harder to send AJAX requests from JavaScript. jQuery made it easy for a couple of reasons. One, it provided helper functions like $.get
, $.post
, and the more…