No commit activity in last 3 years
No release in over 3 years
Easily add jquery inputmask to your Formtastic.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Formtastic jQuery Inputmask

Easily add jquery inputmask to your Formtastic (or ActiveAdmin).

Installation

1. Include to your Gemfile

gem 'formtastic-jquery_inputmask'

2. Require javascript dependency

//= require formtastic/inputmask

3. Load locale or other inputmask file as you want

//= require formtastic/inputmask/locales/pt-BR
//= require inputmask/phone-codes/phone-us

p.s. it auto adds jquery as a dependency in your project

Usage

f.input :created_at, mask: 'datetime'
f.input :date, mask: { alias: 'datetime', inputformat: 'dd/mm/yyyy' } 

Maintainer

Dhyego Fernando