Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zooppa/administrate-field-country
π A plugin to deal with country selection in Administrate
https://github.com/zooppa/administrate-field-country
administrate country rails ruby unmaintained
Last synced: 3 months ago
JSON representation
π A plugin to deal with country selection in Administrate
- Host: GitHub
- URL: https://github.com/zooppa/administrate-field-country
- Owner: zooppa
- License: mit
- Archived: true
- Created: 2017-01-10T10:20:39.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-29T09:13:22.000Z (almost 2 years ago)
- Last Synced: 2024-04-24T01:02:10.583Z (8 months ago)
- Topics: administrate, country, rails, ruby, unmaintained
- Language: Ruby
- Homepage: https://github.com/thoughtbot/administrate
- Size: 52.7 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Administrate::Field::Country
[![No Maintenance Intended](https://unmaintained.tech/badge.svg)](https://unmaintained.tech/) [![Build status](https://github.com/zooppa/administrate-field-country/actions/workflows/build.yml/badge.svg)](https://github.com/zooppa/administrate-field-country/actions/workflows/build.yml) [![Code Climate](https://codeclimate.com/github/zooppa/administrate-field-country/badges/gpa.svg)](https://codeclimate.com/github/zooppa/administrate-field-country)
---
### IMPORTANT NOTICE
**This gem is not actively maintained anymore**.
If youβre interested in taking over and steward the project moving forward, please get in touch.
---
A plugin to deal with country selection in [Administrate], with the help of [country_select] gem.
You can customize any [country_select options] by passing a `country_select_options` hash in your dashboard configuration (see below).
## Usage
Add it to your `Gemfile`:
```ruby
gem 'administrate-field-country', '~> 0.3.0'
```Run:
```bash
$ bundle install
```Add to your `FooDashboard`:
```ruby
ATTRIBUTE_TYPES = {
bar: Field::Country.with_options(country_select_options: { priority_countries: %w[US IT GB], include_blank: true })
}.freeze
```## About
This gem is maintained by [Zooppa].
[administrate]: https://github.com/thoughtbot/administrate
[country_select]: https://github.com/stefanpenner/country_select
[country_select options]: https://github.com/stefanpenner/country_select#usage
[zooppa]: https://github.com/zooppa