DCT Academy > API
02
Sep
How to embed Google Maps in a Rails 4 Application
Create a new application rails new explorcity Let create two models ie City and Destination. City has an attribute name. Destination has attributes like name, latitude, longitude and city_id. Let us go ahead and scaffold the two models rails generate scaffold City name:string rails generate scaffold Destination name:string latitude:float longitude:float city_id:integer Creating the tables rake [...]