Sha256: 42aba7c132c6c884df6917ac29ae557c80dcb23762c6a55cd32d4bdf6be6dee6

Contents?: true

Size: 406 Bytes

Versions: 2

Compression:

Stored size: 406 Bytes

Contents

module GoogleMapsRails
  module ViewHelpers
    def embed_google_maps(lat, long, width = 500, height = 500)
      if lat != '' && long != ''
        "<iframe src = 'https://maps.google.com/maps?q=#{lat},#{long}&amp;output=embed' frameborder='0' style='border:0' width='#{width}' height='#{height}' allowfullscreen></iframe>"
      else
        "latitude or longitude not found"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
google_maps_rails-1.0.3 lib/google_maps_rails/view_helpers.rb
google_maps_rails-0.0.3 lib/google_maps_rails/view_helpers.rb