Skip to main content

Turbo Rails

Turbolinks has been in use for a long time and has helped speed up Rails applications with little to no effort. With that being said Turbo is now the latest and greatest and can do everything Turbolinks can, plus more!

Starting with version 2.0.0 of PMACS Frontend, turbo-rails is provided as an optional JavaScript module. This saves you the effort from needing to search for the specialized UMD version that is compatible with our setup.

The provided module is located in app/assets/javascripts/pmacs-frontend/turbo-rails.js and is just a convenience for the underlying JS file.

If you would like to start using turbo-rails in your project, there is a provided rake task to help you out.

rake pmacs_frontend:migrate_turbolinks

This should get most things working for you, but you should definitely manually verify!