The gem by itself is working pretty well because when I register a new location I just put the address and it brings me the latitude and longitude. However, when I try to display this location in a map it does not show anything
Help please
Show.html.erb
<%= image_tag "http://maps.google.com/maps/api/staticmap?size=450x300&sensor=false&zoom=16&markers=#{@location.latitude}%2C#{@location.longitude}" %>
location.rb
class Location < ApplicationRecord
geocoded_by :address
after_validation :geocode
end