Rails 4.1 has_many.js error
I've been using Rails 4 for a while and thought I was used to turbolinks and how they affect page load and the rest of your javascript.
I am using the jquery-turbolinks gem to make it easier to link the document to the rest of my javascript and have no problem with it until recently after upgrading to 4.1 where sometimes I get a javascript error from the has_many.js file which ends up breaking everyone else javascript on my site.
This Uncaught TypeError: undefined is not a function
and looking at the has_many.js file is a function issue init_sortable
.
This is a fairly new app I'm working on and I haven't even set up any has_many relationships, so I'm not sure why this even works.
If anyone has encountered a similar issue, I would really appreciate any help. For now, I'll most likely go back to rails 4 for this project and see if it fixes it.
source to share