Error in Rails 3.1 using js jQuery - “Template is missing”

懵懂的女人 提交于 2019-12-08 14:41:34

Posting the answer you arrived at here so others will know:

With Rails 3.1, you no longer need to manually include the rails.js file in your application (or the jquery.js file for that matter). Having gem 'jquery-rails' in your Gemfile will already include these for you.

When you do manually include old pre-Rails 3.1 versions of these files, it could interfere with proper javascript/jQuery functionality.

user1673427

Try adding the jquery-rails gem to your Gemfile.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!