I have been reading some posts related with this issue, but i couldn't get this working.
I tried to use the 'openlayers-rails' gem and also i tried adding the OpenLayers folder to /vendor/assets/javascript/ (with the require //= require OpenLayers/OpenLayers into the /assets/javascript/application.js file). I both scenarios i get "Uncaught ReferenceError: OpenLayers is not defined" as a browser inspector error.
Any help is appreciated! Thanks
The README for the openlayers-rails gem says that you should include the JS this way:
//= require openlayers-rails
Not with //= require OpenLayers/OpenLayers
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With