Closed yangtheman closed 2 weeks ago
I have been able to reproduce this on Rails 8.0.0.rc2, though the issue doesn't appear to be present in Rails 7.2. I've narrowed it down to the call to Rails.application.reload_routes!
within the Trestle reloader, and I believe is related to test failures I'm seeing with trestle-auth on Rails 8.0.
I will keep investigating further.
It looks like there is now a PR in place for rails code (rails/rails#53522) to fix this. I've tested the branch and it appears to fix this issue as well as the trestle-auth test failures with Rails 8.0.
I'll keep this issue open until it is fully merged in upstream but hopefully that will be the solution here.
Closing as the fix has now been merged into the Rails 8-0-stable branch.
@spohlenz Hey, I just want to thank you for being on top of the issue! I really appreciate it.
Hi there,
I noticed that on Rails 8.0.0.rc2, installing Trestle (0.10.1) somehow removes or blocks
/cable
route. Normally you would see something like this for a page that has turbo frame:But with Trestle, you see the following and none of the turbo works.
This is with nothing else changed except install Trestle and before running
bin/rails generate trestle:install
.This is only thing that's preventing us from going forward and using Trestle. Any help would be much appreciated.