tagmanager-rails

This gem provides Tag Manager for Rails asset pipeline.

It includes the CSS; SCSS and LESS version of the stylesheet.

Version

3f2dff68105a2adb89513104534082360e25c373

Installation

Add the tagmanager-rails gem to your Gemfile.

gem 'tagmanager-rails'

And run bundle install.

Rails 3.1 or greater with asset pipeline enabled

The Tag Manager file will be added to the asset pipeline.

JS

Add the following line to app/assets/javascripts/application.js:

//= require bootstrap-tagmanager

CSS, SCSS or LESS

Add the following line to app/assets/stylesheets/application.css:

/*
 *= require bootstrap-tagmanager
 */

If you want to change the variables, include it with the Sass @import method

@import 'bootstrap-tagmanager';

Do the same if you are using LESS respectively.

Contributing

Feel free to open an issue ticket if you find something that could be improved.

Upgrading Tag Manager

  1. Upgrade CSS and LESS version of stylesheet
  2. Convert LESS to SCSS
  3. Update TAGMANAGER_VERSION
  4. Update Changelog and README

Acknowledgements

Many thanks to max-favilli for Tag Manager and all Rails committer for Rails.

Copyright Tobias L. Maier, released under the MIT License. Tag Manager itself is under Mozilla Public License. See license.txt of the project.