Socket
Book a DemoInstallSign in
Socket

activeadmin_google_places

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

activeadmin_google_places

bundlerRubygems
Version
0.1.2
Version published
Maintainers
1
Created
Source

ActiveadminGooglePlaces

Plugin for adding google places search autocomplete to activeadmin

Installation

Add this line to your application's Gemfile:

gem 'activeadmin_google_places'

And then execute:

$ bundle install

And then add these javascript files to the activeadmin.js file:

//= 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


 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.

FAQs

Package last updated on 29 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts