Repository is archived
No commit activity in last 3 years
No release in over 3 years
Provide select2 input class for simple_form
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
~> 3.2.12
>= 0

Runtime

 Project Readme

simple_form_auto_select2

Provide select2 input class for simple_form (simple_form).

Based on auto_select2 gem.

Gem Version

Installation

Add this line to your application's Gemfile:

gem 'simple_form_auto_select2'

Usage

Static select2

f.association :project, as: :select2

Ajax select2

f.input :user_id, as: :ajax_select2, placeholder: t(:select_user_from_list),
        default_class_name: :user, default_text_column: [:id, :firstname, :lastname]

More info see in documentation of auto_select2 gem and in auto_select2_tag_example project