Vanilla UJS

It is implementation of Rails jQuery UJS in pure JavaScript. Based on code of Ɓukasz Niemier. No extra dependencies.

Installation

Vanilla UJS is meant to work as a Rails plugin. To install it in your current application, add the following to your Gemfile:

gem 'vanilla-ujs'

The Vanilla UJS files will be added to the asset pipeline and available for you to use. Just add these lines in app/assets/javascripts/application.js:

//= require vanilla-ujs

Browser support

This gem supports all modern browsers and IE10+.