Google Maps Javascript Api v3 Demo App
This App demonstrates how to initialize and play with coordinates (Longitude, Latitude) on google maps using google maps API v3, and without using any Ruby Gems.
It consists of just an html view supported by a controller and no model is generated since use of database with this application was not intended.
-
Ruby version
This Application uses Ruby 2.1.2p95 and Rails 4.1.2.
-
System dependencies
Basic gem bundle is enough to run this app. However since we’re not using any database, following command was executed:
$rails new gmap_demo –skip-active-record
-
Configuration
Rails welcome page replaced with the main view page (gmap.html.erb) by adding: match “/” , to: “map_page#gmap”, via: :GET to the routes.rb file.