apneadiving/Google-Maps-for-Rails — Issue #153: div displays but map doesn't
Author: JulianMiller
Created: 2012-02-22 20:08:51+00:00
State: open

I think I've followed all of the docs but I can't seem to get the map to display even though the div does. I'm running Rails 3.2.1

I added @json = Location.all.to_gmaps4rails to my LocationsController

locations.rb has:

class Location < ActiveRecord::Base
attr_accessible :latitude, :longitude, :name, :address, :phone, :blurb
acts_as_gmappable

def gmaps4rails
"#{self.longitude}, #{self.latitude}"
end
end

added <%= gmaps4rails(@json) %> to my view

and added <%= yield :scripts %> to my footer. anyone else having this issue?