// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.

// It is important that generated/vendor-bundle must be before bootstrap since it is exposing jQuery and jQuery-ujs
//= require generated/vendor-bundle
//= require generated/app-bundle

// Must go after the vendor-bundle, b/c vendor-bundle has jQuery.
//= require bootstrap-sprockets

//= require turbolinks

//= require react_on_rails

// TODO: move to this separate file.
$(document).on('ready page:load', function () {
  $('nav a').parents('li,ul').removeClass('active');
  $('nav a[href="' + this.location.pathname + '"]').parents('li,ul').addClass('active');
});

@@ -578,23 +578,16 @@
 %0A// 
-It is important
+CRITICAL
  tha
@@ -624,14 +624,14 @@
  be 
-before
+BEFORE
  boo
@@ -636,16 +636,41 @@
 ootstrap
+-sprockets and turbolinks
  since i
@@ -673,16 +673,19 @@
 ce it is
+%0A//
  exposin
@@ -785,70 +785,33 @@
 %0A// 
-Must go after the vendor-bundle, b/c vendor-bundle has
+Next two depend on
  jQuery
-.
 %0A//=
@@ -823,50 +823,49 @@
 ire 
-bootstrap-sprockets%0A%0A//= require turbolink
+turbolinks%0A//= require bootstrap-sprocket
 s%0A%0A/

Update application.js