Closed jdufresne closed 3 months ago
This was already addressed in turbo-rails. https://github.com/hotwired/turbo-rails/issues/512 Please wait for the next release of it, or use the github source:
gem 'turbo-rails', github: 'hotwired/turbo-rails'
Thanks for that link! Will do.
Can you explain why the require 'turbo-rails'
exists in Rails Admin if it is only used in JavaScript? What is that for? As we see here, removing it doesn't cause a test to fail, so maybe we would benefit from a new test to demonstrate.
It's necessary for asset pipeline configuration. Without it assets:precompile
fails.
% rails assets:precompile
bin/rails aborted!
Sprockets::FileNotFound: couldn't find file 'turbo' with type 'application/javascript' (Sprockets::FileNotFound)
...
Some projects use RailsAdmin without using Turbo or ActionCable. In these applications, when the Rails configuration option
config.eager_load
is set to true, the RailsAdmin requirement of turbo will result in eager loading files that can't load.The result is the following error:
As a workaround, my application requires ActionCable, but it doesn't actually use it.
Removing the eager loading, does not remove using Turbo in the frontend. There is no change there.