I am trying to use the gem 'gmaps4rails'. I inserted all of the necessary code into my model and view, and I know that the geocoding is working. However, when I insert the code <%= gmaps4rails(@json) %>
into my index.html.erb
file, the map does not appear.
EDIT: I downgraded the version to 0.8.8
, and I was able to run
rails g gmaps4rails:install
to get the layouts. Does version 0.9.1
have a different command for installing the layouts?
I was having the same problem (couldn't get the generator installing) and getting the 404 for gmaps4rails.js.
The following steps worked (you had most of it).
and it worked fine after that (i.e. map showing).