turbolinks / turbolinks-classic

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

Do not call response.body to set the body again #627

Closed rafaelfranca closed 9 years ago

rafaelfranca commented 9 years ago

Calling response.body we are reading the body steam so the response will be considered sent. The best way to handle that is to use render_to_body to get the body string.

Also call super straight ahead when turbolinks is not enabled.

cc @Thibaut

kaspth commented 9 years ago

Nice, this looks good to me :heart:

Thibaut commented 9 years ago

Thanks :+1: