简体   繁体   English

Ruby on Rails 和 jQuery 不在本地工作,但在 heroku 上很好

[英]Ruby on Rails and jQuery not working locally but on heroku is fine

I got an weird problem, I'm trying to make a site in Rails.我遇到了一个奇怪的问题,我正在尝试在 Rails 中创建一个站点。 I got some documentation but I can't figure this one out, I'm using a jQuery plug-in to alter my scrollbars inside an div as you can see on this website,我有一些文档,但我无法弄清楚这一点,我正在使用 jQuery 插件来更改 div 内的滚动条,如您在本网站上看到的那样,

http://dontkeepmewaiting.heroku.com/home/index http://dontkeepmewaiting.heroku.com/home/index

I made a screenshot of the only difference I could find between the version on Heroku and the localhost version, it's pretty big (1900x1200)我截取了 Heroku 版本和 localhost 版本之间的唯一区别,它非常大(1900x1200)

http://no-illusions.nl/random/jquery_rails.png http://no-illusions.nl/random/jquery_rails.png

as you can see all the files are the same (I checked them) the only thing that's different is the order but that can't be it right?如您所见,所有文件都相同(我检查了它们),唯一不同的是顺序,但这不可能吗?

Maybe Heroku has an gem install which I don't?也许 Heroku 安装了我没有的 gem?

Check the permissions on the javascript files检查 javascript 文件的权限

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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