{"id":15152724,"url":"https://github.com/peterconsuegra/google_maps_by_pete","last_synced_at":"2026-02-02T22:43:21.223Z","repository":{"id":56874963,"uuid":"440982386","full_name":"peterconsuegra/google_maps_by_pete","owner":"peterconsuegra","description":"An agile way to implement Google Maps localization in a scaffold with Ruby On Rails","archived":false,"fork":false,"pushed_at":"2022-01-04T17:46:20.000Z","size":2013,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-04T00:40:37.685Z","etag":null,"topics":["google-maps","googlemaps","ruby","ruby-on-rails","rubygem"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peterconsuegra.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-22T20:56:21.000Z","updated_at":"2022-01-04T17:46:23.000Z","dependencies_parsed_at":"2022-08-20T22:00:42.652Z","dependency_job_id":null,"html_url":"https://github.com/peterconsuegra/google_maps_by_pete","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peterconsuegra/google_maps_by_pete","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterconsuegra%2Fgoogle_maps_by_pete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterconsuegra%2Fgoogle_maps_by_pete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterconsuegra%2Fgoogle_maps_by_pete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterconsuegra%2Fgoogle_maps_by_pete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterconsuegra","download_url":"https://codeload.github.com/peterconsuegra/google_maps_by_pete/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterconsuegra%2Fgoogle_maps_by_pete/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29022305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T22:20:39.141Z","status":"ssl_error","status_checked_at":"2026-02-02T22:20:37.621Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-maps","googlemaps","ruby","ruby-on-rails","rubygem"],"created_at":"2024-09-26T16:21:52.548Z","updated_at":"2026-02-02T22:43:21.206Z","avatar_url":"https://github.com/peterconsuegra.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby On Rails Google Maps By Pete\n\nAn agile way to implement Google Maps geolocation in a Ruby On Rails scaffold\n## Support\n\nRuby On Rails: 5, 6, 7\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'google_maps_by_pete'\n\n```\n\nGo to your application's directory in Terminal and run the command:\n```ruby\nbundle install\n```\n\n\n## Usage\nLet's create a example for a Place scaffold:\n\n1. Let's create a new rails app:\n\n```ruby\nrails new myapp\n```\n\n2. Create the database:\n\n```ruby\nbundle exec rake db:create\n```\n\n3. Go to your application's directory in Terminal and run the command:\n\n```ruby\nbundle exec rails g scaffold Place name:string description:text\n```\n\n4. Add this line to your application's Gemfile:\n\n```ruby\ngem 'google_maps_by_pete'\n```\n\n5. Go to your application's directory in Terminal and run:\n\n```ruby\nbundle install\n```\n\n6. Go to the application directory in Terminal and run the following command to install the necessary code and files from the gem:\n```ruby\nbundle exec rake 'install_google_maps_by_pete[Place]'\n```\n7. Add jQuery to your layout file: /app/views/layouts/application.html.erb\n```html\n\u003cscript src='/google_maps_by_pete/jquery-3.6.0.min.js'\u003e\u003c/script\u003e\n```\n8. Add maps.css to your layout file: /app/views/layouts/application.html.erb\n```html\n\u003clink rel='stylesheet' href='/google_maps_by_pete/maps.css'\u003e\n```\n9. Paste this partial to your _form.html.erb file: /app/views/places/_form.html.erb\n\n```ruby\n\u003c%= render 'shared/google_maps_by_pete', api_key: 'your_google_api_key',  height: '500px', center_map_on: {lat: 25.761681, lng: -80.191788}, model: place%\u003e\n```\n\n10. Allow parameters (lat and lng) in your controller: /app/controllers/places_controller.rb\n\n```ruby\ndef place_params\n   params.require(:place).permit(:name, :description, :lat, :lng)\nend\n```\n\n## Video Tutorial\n\nWatch this video to see how it works\n\n[![IMAGE ALT TEXT HERE](https://raw.githubusercontent.com/peterconsuegra/google_maps_by_pete/master/templates/MapsByPete.png)](https://www.youtube.com/watch?v=YCp1Yv2A4Dc)\n\n\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/peterconsuegra/google_maps_by_pete. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/peterconsuegra/google_maps_by_pete/blob/master/CODE_OF_CONDUCT.md).\n\n## Code of Conduct\n\nEveryone interacting in the GoogleMapsByPete project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/peterconsuegra/google_maps_by_pete/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterconsuegra%2Fgoogle_maps_by_pete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterconsuegra%2Fgoogle_maps_by_pete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterconsuegra%2Fgoogle_maps_by_pete/lists"}