开发者

Installing rails app on Linux gives google maps api errors in javascript

开发者 https://www.devze.com 2023-04-03 15:07 出处:网络
I have an app written in ruby on rails which is running fine on my Mac.However when I install the app on Linux via Passanger the Google maps on the page don\'t work and I get a javascript error.Is the

I have an app written in ruby on rails which is running fine on my Mac. However when I install the app on Linux via Passanger the Google maps on the page don't work and I get a javascript error. Is there anything that needs to be done so external javascripts will run?

Installing rails app on Linux gives google maps api errors in javascript

The error is in the file geometry.js from google maps:

Installing rails app on Linux gives google maps api errors in javascript

The only difference between firebug running from local computer and the linux box is I get the list of js files in the screenshot above in different order although the code is exactly the same.

If I run the rails probram on WEBrick on the linux machine I get the same error.开发者_如何学Go


The problem was that I was including all the javascript files instead of using just :default. That solved the problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消