I just fixed a similar problem - after updating my package (including jquery-rails) and running rails generate jquery:install (updating jquery itself). As far as I understand, rails.js is now being replaced with jquery_ujs.js (I'm not sure if this is a smart move though).
You should continue and exclude any links to rails.js in your application, there are two possible places to search:
config/application.rb - perhaps you can completely remove the line config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
and
app/views/layouts/application.* - you should have a line != javascript_include_tag :defaults , not links to jquery or rails .
source share