I am installing jQuery in my 5.1.x
Rails app via the jquery-rails
gem.
In the gem setup, they recommend to add these lines to application.js
by default:
//= require jquery
//= require jquery_ujs
But, in a Rails 5.1.x
app, you have already this line which doesn't depend on jQuery anymore:
//= require rails-ujs
I suppose both are doing the exact same thing and one is not needed.
Should I keep both anyway or should I prefer only jquery_ujs
or only rails-ujs
?