Project

taggle

0.0
No commit activity in last 3 years
No release in over 3 years
This gem allows you to include Taggle.js in your Rails app, using the asset pipeline.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.12
~> 10.0
~> 3.0

Runtime

>= 3.2
 Project Readme

Taggle

Gem Version Build Status Dependency Status

This gem is a wrapper of Taggle.js project, that allows you to include Taggle.js in your Rails app, using asset pipeline.

The gem currently includes Taggle.js version 1.12.0.

Installation

Add this line to your application's Gemfile:

gem 'taggle'

And then run:

$ bundle

Or install it yourself as:

$ gem install taggle

Usage

Include the taggle javascript in your app/assets/javascripts/application.js or app/assets/javascripts/vendor.js:

//= require taggle-full

This will include taggle-ie8.js, taggle-ie9.js and taggle.js. You can also require each one of these three files individually if you prefer.

Stylesheets

I put together several styles based on the official examples of Taggle.js. These styles should be enough for you to get started but they probably require some overriding to fit your page design.

To use this unofficial set of styles, include in your app/assets/stylesheets/application.js or app/assets/stylesheets/vendor.js:

*= require taggle

And add the class taggle to the div you'll use to wrap the tags. Example:

<div id="example" class='taggle'></div>

<%= javascript_tag do %>
  new Taggle('example');
<%= end %>

License

The gem is available as open source under the terms of the MIT License.