Socket
Book a DemoInstallSign in
Socket

administrate-field-collection_select

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

administrate-field-collection_select

0.4.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

Administrate::Field::CollectionSelect

A plugin for Administrate

Usage

Add to your Gemfile:

gem 'administrate-field-collection_select'

Run:

$ bundle install

Add to your FooDashboard:

Supports all of the options that a normal Rails collection_select does including multiple: true

NOTE: Make sure to specify the collection query as a proc

ATTRIBUTE_TYPES = [
  bars: Field::CollectionSelect.with_options(
    collection: proc { Bar.all },
    value_method: :id,
    text_method: :name,
    options: {
      include_blank: 'Please Select A/Some Bars',
      include_hidden: false,
    },
    multiple: true,
    label: 'Good Bars',
  ),
]

FAQs

Package last updated on 09 Aug 2023

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.