Repository is archived
No commit activity in last 3 years
No release in over 3 years
Provide select2 input class for semantic_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

formtastic_auto_select2

Provide select2 input class for semantic_form (formtastic).

Based on auto_select2 gem.

Gem Version

Installation

Add this line to your application's Gemfile:

gem 'formtastic_auto_select2'

Usage

Static select2

f.input :project, as: :select2

Ajax select2

f.input :user, 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