But is it included by application.js? If it is this is not fault of rails but your script. Try to use turbolink hooks to call your script like I did in  autocomplete script. ;)

http://stackoverflow.com/questions/18770517/rails-4-how-to-use-document-ready-with-turbo-links