Learnetto Blog · Aug 23, 2017
How to make AJAX calls in Rails 5.1 with or without jQuery
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
Rails shipped without jQuery as a dependency for the first time with version 5.1. Rails used to rely on jQuery for Unobtrusive JavaScript features but now ships with its own library rails-ujs with the same features. One of the most common use cases for jQuery in Rails was making AJAX calls through forms and links. If you’re using Rails 5.1 for the first time, you might get confused about how to…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.