简体   繁体   中英

Rails 3.1 javascript after asset precompile stop working; production

For some reason my site was working perfectly one second. However, i realized that there is a css error so i decide to fix it by doing assets:precompile. Once I did that my entire site messed up. none of the javascript works anymore. However css still works. Does anyone have any idea on how I can fix that. I have no idea where I can start or debug. Any tips will be appreciated. Thanks.

I figured it out. I need to get rid of all the //= require after jquery_ujs and just do a javascript_include_tag jquery.nivo.slider.pack at home.erb.html. Thanks for all the help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM