I am installing jQuery in my 5.1.xRails application using jquery-railsgem.
In gem configuration, it is recommended to put these lines in application.jsthe default:
//= require jquery
//= require jquery_ujs
But in a Rails application 5.1.x, you already have this line, which is no longer dependent on jQuery:
//= require rails-ujs
I believe that both do the same, and one is not needed.
Should I save both anyway, or should I use only jquery_ujsor only rails-ujs?
source
share