Rails Route Codelens is a Visual Studio Code extension that provides code lenses for Ruby on Rails controller files. It enhances the development workflow by displaying code lenses that allow quick navigation to corresponding view files.
Features
Generates code lenses for Ruby on Rails controller files.
Links code lenses to corresponding view files for quick navigation.
Screenshots
Shows the name of the table in models and provide link to navigate to schema file.
Shows the route information above controller actions and link to view files if available.
Shows the Model name above table and link to the model file.
Requirements
Visual Studio Code (version 1.76.0 or higher)
Ruby on Rails (version 3.0.X or higher)
make sure 'rails routes' command executes in terminal without errors
Installation
Launch Visual Studio Code.
Open the Extensions view by clicking on the square icon in the left sidebar or pressing Ctrl+Shift+X.
Search for Rails Route Codelens and click Install.
Restart Visual Studio Code.
Usage
Open a Ruby on Rails controller file.
Code lenses will be displayed above each action defined in the controller.
Click on a code lens to navigate to the corresponding view file.
Troubleshooting
Make sure rails routes command executes in your project thorough vscode without errors.
Configuration
Rails Route Codelens does not require any additional configuration.
Known Issues
The extension is not tested on MacOS. Extension might mis behave.
If you encounter any problems or have suggestions for improvement, please create an issue in the `git@github.com:anx450z/route-map.git.