turbolinks / turbolinks-classic

Classic version of Turbolinks. Now deprecated in favor of Turbolinks 5.
MIT License
3.54k stars 428 forks source link

Turbolinks.enableProgressBar() returns undefined #677

Open NeoElit opened 7 years ago

NeoElit commented 7 years ago

I'm experiencing a weird 'undefined' return value from Turbolinks.enableProgressBar(); in case when server renders page without redirection in response to a post request. Any work around for this issue?

Steps to replicate: 1) Post a form 2) Render action (without redirection; common for a case of form validation error) 3) In JS console try Turbolinks.enableProgressBar();

You'll see undefined

Rails: 4.2.6 Turbolinks: 2.5.3