apneadiving / Google-Maps-for-Rails

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

Couldn't find file 'gmaps/google' with type 'application/javascript' #555

Closed giacomo-giovenzana closed 6 years ago

giacomo-giovenzana commented 6 years ago

Rails beginner. I have followed step-by-step the Requirements page (added gem into Gemfile, bundle install, added div, added javascript dependencies and source code with asset pipeline and finally added the javascript inside view) but, when I load my homepage I get the following: couldn't find file 'gmaps/google' with type 'application/javascript' I have googled something and finally I have tried to remove the 2 following lines inside application.html.erb: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> Doing this I got the trick and the homepage is correctly loaded.

giacomo-giovenzana commented 6 years ago

Maybe my mistake in adding and installing the gem