ruby on rails - error when precompile assets with turbo-sprockets-rails3 -


i have installed turbo-sprockets-rails3 gem precompile assets capistrano.

i have added load 'deploy/assets' capfile , deploy finish fine.

however when try load app on remote server can see inside production.log file next errors:

actionview::template::error (bootstrap-modalmanager.js isn't precompiled):     7:     <%= display_meta_tags :site => "9cvs" %>     8:     <%= stylesheet_link_tag    "application", :media => "all" %>     9:     <%= javascript_include_tag "application" %>     10:     <%= javascript_include_tag "bootstrap-modalmanager" %>     11:     <%= javascript_include_tag "jquery.back_to_top" %>     12:     <%= javascript_include_tag "swfobject" %>     13:     <%= csrf_meta_tags %> 

bootstrap-modalmanager.js found inside vendor/javascripts/ folder. have css files inside vendor/stylesheets/ , swf files inside vendor/flash/ folder.

how can precompile assets correctly?

you need in production.rb

config.assets.precompile += ['bootstrap-modalmanager.js', 'jquery.back_to_top.js', 'swfobject.js'] 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -