Sha256: ece6b2211bc679cd20f87c5e0211f5396d18cec39b276b542bee3d7baf868fa1

Contents?: true

Size: 821 Bytes

Versions: 1

Compression:

Stored size: 821 Bytes

Contents

# FORMTASTIC REGEX INPUT

## Description

A simple filter input for active admin with checking at client if input match predefined regex.

![Demo Gif](http://g.recordit.co/ReSXY68Lhb.gif)

## Dependency

* activeadmin 1.0.0 pre
* rails-assets-webui-popover (Require manual install)
* jquery-rails 3.1

## Installation

Add following lines to the Gemfile:

```ruby
gem 'rails-assets-webui-popover', source: 'https://rails-assets.org'
gem 'activeadmin-regex-input', '~> 0.1'
```

Then execute `bundle` to install to your activeadmin project.


## Usage
In the index section of activeadmin controller:
```ruby
filter :sample_regex,
         as: :regex,
         regex: ']d+',
         example: '123'
```

The regex option is the string representation of the regex. This must compatible with javascript default regex engine.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activeadmin-regex-input-0.1.0 README.md