Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/randikabanura/activeadmin_google_places
Gem for adding google places search autocomplete to activeadmin
https://github.com/randikabanura/activeadmin_google_places
activeadmin ruby ruby-on-rails rubygems
Last synced: 2 months ago
JSON representation
Gem for adding google places search autocomplete to activeadmin
- Host: GitHub
- URL: https://github.com/randikabanura/activeadmin_google_places
- Owner: randikabanura
- License: mit
- Created: 2020-06-24T05:41:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-28T14:22:06.000Z (over 1 year ago)
- Last Synced: 2024-09-27T16:21:53.645Z (3 months ago)
- Topics: activeadmin, ruby, ruby-on-rails, rubygems
- Language: Ruby
- Homepage: https://rubygems.org/gems/activeadmin_google_places
- Size: 58.6 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ActiveadminGooglePlaces
Plugin for adding google places search autocomplete to activeadmin
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'activeadmin_google_places'
```And then execute:
$ bundle install
And then add these javascript files to the activeadmin.js file:
```js
//= require activeadmin/google_places/google_places
//= require activeadmin/google_places_input
```Please generate the activeadmin_google_places initializer:
$ rails generate activeadmin_google_places:install
This will create a initializer file that you can add your Google API key.
This will be used for the fields that you want to add google places autocomplete.
Unless you configure this api key google will refuse to show any places results.In activeadmin you can basic add google places search by doing ```as: :google_places``` to
your inputs.## Examples
```ruby
form do |f|
f.inputs 'Event' do
f.input :name
f.input :date
f.input :location, as: :google_places
f.input :active
end
f.actions
end
```## Do you like it? Star it!
If you use this component just star it. A developer is more motivated to improve a project when there is some interest.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/randikabanura/activeadmin_google_places.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
## Developer
Name: [Banura Randika Perera](https://github.com/randikabanura)
Linkedin: [randika-banura](https://www.linkedin.com/in/randika-banura/)
Email: [[email protected]](mailto:[email protected])
Bsc (Hons) Information Technology specialized in Software Engineering (SLIIT)