Replace jquery.get with Rails.ajax
In the code below jQuery.get is used in order to download javascript that is then executed. In order to move away from jQuery ajax, we can utilize Rails.ajax which does the same thing.
Showing
Please register or sign in to comment