annotate_models icon indicating copy to clipboard operation
annotate_models copied to clipboard

Suggestion: for --routes

Open JoshMLeslie opened this issue 8 years ago • 3 comments

Instead of '--routes' populating the 'routes.rb' file, it makes more sense to me that it would behave the same way the standard annotate population does, where each controller file is populated w/ its relevant route information at the top.

Unless this optional already exists and I just didn't see it in the docs?

JoshMLeslie avatar Apr 12 '18 14:04 JoshMLeslie

This would not be the behavior currently expected.

ctran avatar Apr 12 '18 19:04 ctran

We would also love to see controllers annotated with routes. We are constantly switching between routes and controller files looking for orphaned actions and identifying where / how the action is used

Even better would be to have annotations on the controller actions.

The current controller annotation, does not include subdirectories, this would also be great

BTW. Annotate is awesome. Our team says thanks.

ghost avatar Oct 24 '18 23:10 ghost

PR is welcome.

ctran avatar Feb 14 '19 16:02 ctran