Open SimBed opened 1 year ago
A work-around that works for me: create a file in /lib/tasks called routes.rake and add this:
task routes: :environment do
puts `bundle exec rails routes`
end
I'm using devcontainers, I added this line in my setup.sh
script:
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 :)
Is this repo still being maintained?
cc @ctran @drwl @MrJoy
@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.
A work-around that works for me: create a file in /lib/tasks called routes.rake and add this:
task routes: :environment do puts `bundle exec rails routes` end
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