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

Problems with server-side rendering after upgrading from classic #14

@minimul

Description

@minimul

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().

  1. 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.
  2. Is there something I need to add to the $.get({ url: url, dataType: 'script' }) call for the Turbolinks.visit to kick in?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions