I am following Ruby on Rails Tutorial (3.2) by Michael Hartl. In chapter 9 delete user by admin user functionality is introduced. This is working fine on my local machine but not on heroku. Though the generated HTML is same both locally and on heroku
<a href="/users/2" data-confirm="You sure?" data-method="delete" rel="nofollow">delete</a>
When I click delete link locally I get popup with you sure? and on clicking OK it deletes the user. However with same code on heroku when I click delete link, it takes me to user page of that user instead of pop up with you sure? message.
Can someone please guide?
My application.js had following entries
//= require jquery_ujs
//= require bootstrap
//= require jquery
//= require_tree .
I tried to change the order as below with no success
//= require bootstrap
//= require jquery
//= require jquery_ujs
//= require_tree .