Add this line to your application's Gemfile:
gem 'videojs-wavesurfer-rails', git: 'git://github.com/EmCousin/videojs-wavesurfer-rails.git'
And then execute:
$ bundle
In app/assets/javascripts/application.js
put the following:
//= require videojs-wavesurfer
Gem inspired from wavesurfer-rails. Many thanks to the awesome contributors!