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

gmaps4rails undefined in Heroku #353

Closed yaboyanees closed 10 years ago

yaboyanees commented 11 years ago

Here is my public app: ancient-waters-7067.herokuapp.com

I precompile the assets before heroku create. I assume this is where the problem comes from? Maybe not copying all required files for gmaps? Thanks for the help

apneadiving commented 11 years ago

weird issue, did you get the fresh assets running rails generate gmaps4rails:install

yaboyanees commented 11 years ago

I got fresh assets by running the rails g gmaps4rails:install and it said identical for all files. I then created everything from scratch again and launched from heroku and still got a blank screen saying gmaps is not defined. The app is at: http://venuetagged.herokuapp.com/ or github: yaboyanees/venuetagged

jpwynn commented 11 years ago

One of my apps is running at Heroku, no problem (rails 3.2). I had a blank map until I added the = yield :scripts after the body tag in my layout. Maybe that's it?

yaboyanees commented 11 years ago

In my layout file, I moved yield scripts directly below my body tag. Thanks for the suggestion but it still raises gmap is undefined in the web console.

apneadiving commented 10 years ago

No clue, syntax error?