-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In combination with turbolinks getting error #134
Comments
I have the same problem +1 |
I have fixed the problem. I don't know if this is correct:
Please correct me if I'm wrong. thanks |
I tried your code but seems not to be running. initialize: -> |
It's 3 years old
|
I had the same problem. With 'turbolink' I got the following possible solution that works for me (enviroment: Rails v5.1.1, jQuery v3.2.1, Backbone 1.2.0):
Or even more simple one, depending of your need:
I don't think it's a Backbone-rails bug, it lies in understanding of the Backbone.routing and Turbolink events. Hope it will be helpfull to someone. ;-) |
Backbone-rails isn't compatible with Turbolinks gem, which it will has to be since turbolinks gem going to be in Rails 4.0
When I load page and then click on some link which will be processed by turbolinks, getting error below
Uncaught Error: Backbone.history has already been started
The text was updated successfully, but these errors were encountered: