Rails 4:jQuery在Heroku上不起作用

Rails 4:jQuery在Heroku上不起作用,jquery,ruby-on-rails,twitter-bootstrap,heroku,Jquery,Ruby On Rails,Twitter Bootstrap,Heroku,我正试图在Heroku上部署我的Rails4(带Bootstrap3)项目。我添加了rails\u 12factorgem,运行了rails\u ENV=production bundle exec rake assets:precompile命令,并在myproduction.rb中将以下属性更改为true: config.cache_classes = true config.serve_static_assets = true config.assets.compile = true co

我正试图在Heroku上部署我的Rails4(带Bootstrap3)项目。我添加了
rails\u 12factor
gem,运行了
rails\u ENV=production bundle exec rake assets:precompile
命令,并在my
production.rb中将以下属性更改为true:

config.cache_classes = true
config.serve_static_assets = true
config.assets.compile = true
config.assets.digest = true
这使得项目在Heroku上运行,并带有所有背景图片,但我无法使jQuery工作


我已经将所有的js放在一个名为
welcome.js.coffee
的文件中,当我在本地运行项目时,它工作得非常好。关于如何解决这个问题有什么建议吗?

在生产环境中预编译本地计算机上的资产后,您是否检查了应用程序?您如何在应用程序中包括jquery库。您正在使用任何类型的jquery gem吗?@KalpeshFulpagare现在检查了它,并且它在本地的生产环境中也不工作@TechVinet
gem'jquery rails'
我在控制台中看到了这个错误:
Uncaught ReferenceError:jquery未定义
。你能发布你的gem文件吗?