apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Using with https #52

Closed ananceki closed 13 years ago

ananceki commented 13 years ago

This is a fantastic tool which made adding maps to our application very easy. Thanks guys!

The only problem I'm hitting now is that if you use it on an https page, then you get security warnings about mixed content. The google maps api does support https, so I think it's just a question of changing the script references from http to https. Unfortunately I think it's hidden behind the "acts_as_gmappable" statement - I was hoping for a content_for block I could modify.

Is there an easy way to make it use the https version of the API?http://code.google.com/apis/maps/documentation/javascript/basics.html#HTTPS

Many thanks,

Alex

apneadiving commented 13 years ago

Hi,

Thanks for your comments :)

There is a straight solution to your problem but since it's question, it should be asked on stackoverflow so that info is shared.

Cheers,

Ben

ananceki commented 13 years ago

Apologies Ben, I thought it was going to require a code change. I have reposted as requested: http://stackoverflow.com/questions/6681310/using-gmaps4rails-with-https-ssl

Thanks,

Alex

apneadiving commented 13 years ago

There is absolutely no pb :)

Just answered your question btw, don't forget to accept it!