2012-06-25 16 views
10
Ben Heroku Sedir yığın Rails kullanıyorum

precompiled değildir ve varlıkları derleme ederken herhangi bir sorun atma değil ama sonra 500 iç sunucu hatası alıyorum:Heroku * .js hata

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

konusunda fikrin buna ne sebep olabilir? Bu benim dahil ediyorum javascript dosyası https://github.com/eternicode/bootstrap-datepicker/blob/master/js/bootstrap-datepicker.js

(Ben yerel olarak indirilen hariç) Ben şöyle benim application.html.erb bunu dahil ediyorum:

<%= javascript_include_tag "bootstrap-datepicker" %> 

onun değil bir CoffeeScript için mi dosya? Herhangi bir yardım takdir edilir!

cevap

19

Bunu çözdüm. Ben config.assets.precompile içinde production.rb eklemek zorunda benim config.assets.precompile onu ekledi production.rb olarak

:

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)