Kavya
Kavya

Reputation: 75

How to use Google Maps Libraries in Ruby?

https://developers.google.com/maps/documentation/javascript/libraries In the documentation,its given that java-script code for maps API can be loaded via this bootstrap URL. My application works on Ruby. But I want to use the libraries listed in the above link. Can someone please tell me how to use these java objects/methods in Ruby?

Upvotes: 0

Views: 117

Answers (1)

j0nes
j0nes

Reputation: 8099

Ruby in general is a server-side language. It is run and interpreted on the server itself. The Google Javascript libraries run in the browser. They are interpreted on the client side. Therefore you cannot directly use the Javascript libraries in Ruby.

However if your Ruby app generates HTML pages, you can use the Google libraries in the HTML templates and show maps etc.

Upvotes: 3

Related Questions