Rails, turbolinks and javascript. How to avoid duplicate Switchery button appear?
I'm implementing Switchery button in my Rails app and Turbolinks is on. When I navigate to another page, and then click the back button, the button is being duplicated. Here is my Javascript code:...
![](https://secure.gravatar.com/avatar/d2f6063450980a9fe65537acac566628.png?default=mp&rating=pg&size=48)