ua-parser-js-rails
This is a gem that makes ua-parser-js available to the Rails asset pipeline.
Installation
Add this line to your application's Gemfile:
gem 'ua-parser-js-rails', github: 'wudragonfly/ua-parser-js-rails'
And then execute:
$ bundle
Usage
Include the following line to your application.js
//= require ua-parser.js
For details usage in js, please refer to https://github.com/faisalman/ua-parser-js