turbolinks was preventing jQuery from refreshing the page, in turn preventing jquery from working more than one time... add the gem jquery.turbolinks and //= require jquery.turbolinks to solve the problem