-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails 7, annotate --routes failed #983
Comments
A work-around that works for me: create a file in /lib/tasks called routes.rake and add this:
|
I'm using devcontainers, I added this line in my sudo sed -i 's/rake routes/rails routes/g' /usr/local/rvm/gems/ruby-3.2.2/gems/annotate-3.2.0/lib/annotate/annotate_routes/header_generator.rb Sorry for the dirtiness :) |
@ruanltbg Hi, I don't actively maintain this gem anymore, but work on https://github.com/drwl/annotaterb. |
Thank you, I will update my gemfile. |
It works, but this's that strange, absurd, ridiculous... |
Thanks for the gem. I am just trying it out in Rails 7 after listening to an episode of the Ruby for All podcast where it is referred.
annotate --routes
This is due to the the
rake routes
deprecation [need to userails routes
instead]. An issue was raised earlier about the deprecation warning (just gave a warning, but continued to work in Rails 6.0). Now in 7.0 it fails.Thanks Daniel
The text was updated successfully, but these errors were encountered: