Heroku * .js不是预编译错误

我在Heroku Cedar堆栈上使用Rails,并且在编译资产时没有抛出任何问题,但后来我得到了500个内部服务器错误:

2012-06-25T23:22:59+00:00 app[web.1]: ActionView::Template::Error (bootstrap-datepicker.js isn't precompiled): 

知道是什么原因造成的吗? 这是我包含的javascript文件(除了我在本地下载) https://github.com/eternicode/bootstrap-datepicker/blob/master/js/bootstrap-datepicker.js

我将它包含在我的application.html.erb中,如下所示:

  

是因为它不是coffeescript文件吗? 任何帮助表示赞赏!

我想到了。 我必须将它添加到config.assets.precompile中的production.rb

在production.rb中我将它添加到我的config.assets.precompile:

 config.assets.precompile += %w( jquery.dataTables.min.js jquery-ui-1.8.21.custom.min.js jquery-ui-1.8.21.custom.css bootstrap-datepicker.js fullcalendar.js)