apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Uncaught ReferenceError: Gmaps is not defined in production #326

Closed mildfuzz closed 10 years ago

mildfuzz commented 11 years ago

Getting the "Uncaught ReferenceError: Gmaps is not defined" in production

Js is imported thusly:

//= require jquery //= require jquery_ujs //= require turbolinks //= require_tree .

//= require_directory ./essential/. //= require_directory ./secondary/. //= require_directory ./last/. //= require_directory ./gmaps4rails/.

site is here: http://johnandtammy.co.uk

mildfuzz commented 11 years ago

I have yield scripts in my footer, also

apneadiving commented 11 years ago

looks like your js file is not complied at all: http://johnandtammy.co.uk/assets/application-79e52507d609d838584e3e9832014b30.js

On Mar 12, 2013, at 12:16 AM, John notifications@github.com wrote:

Getting the "Uncaught ReferenceError: Gmaps is not defined" in production

Js is imported thusly:

//= require jquery //= require jquery_ujs //= require turbolinks //= require_tree .

//= require_directory ./essential/. //= require_directory ./secondary/. //= require_directory ./last/. //= require_directory ./gmaps4rails/.

site is here: http://johnandtammy.co.uk

— Reply to this email directly or view it on GitHub.

mildfuzz commented 11 years ago

great minds!! I just spotted that!! Posted on stackoverflow -> http://stackoverflow.com/questions/15362080/rails-asset-pipeline-not-loading-js

undersky0 commented 10 years ago

THANK YOU !!!