MagicSuggest Gem for Rails
MagicSuggest for the Rails asset pipeline.
Installation
Add this line to your application's Gemfile:
gem 'magic_suggest'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install magic_suggest
Add this line to your application.js file
//= require magicsuggest
or
//= require magicsuggest.min
Add this line to your application.css file
*= require magicsuggest
or
*= require magicsuggest.min
Usage
Given an input field, add a class of your choice to it.
<div id="magicsuggest"></div>
Then tokenize the input field as follows.
$(function() {
$('#magicsuggest').magicSuggest({
[...] // configuration options
});
});
Check out the demo and docs.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Changelog
- Released gem v.0.0.1
Contributors
License
Available under the MIT License.