I have seen previous questions regarding this issue but they are not recent have not been answered (please correct me if I am wrong)...
Anyways here is the issue I have been having with Gmaps4rails gem. The latitude and longitude are recorded (using geocoder gem) but they will not display on the gmaps4rails map. The map displays fine on the show page but there are no markers.
provider.rb - model
providers_controller.rb - controller
latitude and longitude recorded in active admin
Can someone please point me in the right direction? Thanks!
Wow I feel stupid. Copied and pasted my index
action code into the show
action and everything worked perfectly
Copied and pasted this into the show
action.
@providers = Provider.all
@markers = ...