No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
With ActiveAdmin-Select2 you are able to chose Select2 as a drop-down entry option in Forms and Filters
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.5
>= 0

Runtime

 Project Readme

ActiveAdmin Select2

Description

Incorporate Select2 JQuery into your ActiveAdmin apps.

Installation

Add activeadmin, jquery-rails and select2-rails to your Gemfile:

   gem 'activeadmin'
   gem 'jquery-rails'
   gem 'select2-rails'

And add activeadmin-select2 to your Gemfile:

   gem 'activeadmin-select2', github: 'mfairburn/activeadmin-select2'

Add the activeadmin-select2 calls to the active_admin stylesheets and javascripts with:

   @import "active_admin/select2/base";
   #= require active_admin/select2

Usage

Filters

Standard :select filters will automagically be converted to Select2 filters. If you want a multi-select combo-box then use:

   ActiveAdmin.register Products do

      filter :fruits, as: :select2_multiple, collection: [:apples, :bananas, :oranges]

   end

Select Lists

To use a Select2 style list simply change from :select to :select2 or :select2_multiple

   ActiveAdmin.register Products do

     form do |f|
       f.input :fruit, as: :select2
     end

     form do |f|
       f.inputs "Product" do
         f.has_many :fruits, allow_destroy: true, new_record: "Add Fruit" do |e|
           e.input :fruit, as: :select2_multiple
         end
       end
     end

   end

Acknowledgements

Copyright

Copyright (c) 2014 Mark Fairburn, Praxitar Ltd See the file LICENSE.txt for details.