This repository was archived by the owner on Sep 25, 2021. It is now read-only.

Description
I have a Rails 4.2.7.1 app and upgraded Turbolinks only:
gem 'turbolinks', github: 'turbolinks/rails'
P.S. App doesn't use any partial replacement.
I have a jQuery ajax call e.g.
$.get({ url: url, dataType: 'script' })
In my Rails controller I have a:
render :new, turbolinks: true
I see that render
has not be modified in this version of lib/turbolinks/redirection.rb
as with the classic version.
But even if I replace render :new, turbolinks: true
with redirect_to
the overridden redirect_to did not kick in and do a Turbolinks.visit()
.
- Are there plans to port over classic's
lib/turbolinks/redirection.rb
with render
support? I have bunch of places where render :***** , turbolinks: true
is called.
- Is there something I need to add to the
$.get({ url: url, dataType: 'script' })
call for the Turbolinks.visit
to kick in?