Railroads is a plugin for RubyMine that lists rails routes results and transitions to files.
There was a great plugin called Railways that I loved very much. However, since IDE version 2023.3, it is no longer available for installation, so I created this plugin.
- Displays routes of Ruby on Rails application/engine in a separate "Railroads" panel
- The listed path and name can be copied from the context menu
- Provides quick routes filtering by route path, controller/action or route name
- IDE versions earlier than
2023.2.*.- if you want to use that version, please use the Railways plugin.
- for ease of feature comparison with Railways, 2023.2.* is supported at this time. However, if Railroads finds it difficult to support 2023.2.* in the future, it may no longer do so.
- Old format output from rails routes
- for example, the format of the following test data from Railways
- because there is no environment that can output the old format
- Railroads version 0.2.* and earlier
- Supports IDE versions from 2023.3.* up to 2024.*
- Railroads version 0.3.* and later
- Supports IDE versions 2024.2.* and later
- Run rails routes when ToolWindow is opened.
- Caching of rails routes results.
- Customize environment, task names, etc.
- Navigation in the code editor.
- Highlight when narrowing down the path.
- Add test code.
-
Using the IDE built-in plugin system:
Settings/Preferences > Plugins > Marketplace > Search for "railroads" > Install
-
Manually:
Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
- Open IntelliJ IDEA.
- Select
File > New > Project from Version Control. - Set
URLis this repository, and ClickClone. - Open
Project Structureand SelectPlatform Settings > SDKs. - Set JDK path.
- example
- Windows + RubyMine's JBR:
C:\Users\<UserName>\AppData\Local\JetBrains\Toolbox\apps\RubyMine\ch-0\233.14808.14\jbr - macOS + RubyMine's JBR:
/Library/Java/JavaVirtualMachines/jbrsdk-21.0.6-osx-aarch64-b895.109/Contents/Home
- Windows + RubyMine's JBR:
- example
- Select
Project Settings > Project. - Set the following values, and click
OK.- Name:
railroads - SDK: Select the JDK configured above
- Language Level:
SDK default
- Name:
- Rename
local.properties.examplestolocal.properties. - Open
local.propertiesand SetideDir. - Select
Run > Run Plugin, and The IDE withRailroadsplugin will start.
see LICENSE file.
Plugin based on the IntelliJ Platform Plugin Template.
