Railways is a plugin for RubyMine and IntelliJ IDEA Ultimate (with Ruby plugin) that provides convenient way to navigate between route actions.
Features:
- Displays routes of Ruby On Rails application/engine in a separate "Routes" panel
- Adds quick navigation to action implementation from routes panel or "Goto route action" popup available in code editor by pressing Ctrl + Shift + G
- Provides quick routes filtering by route path, controller/action or route name
Current release is tested on RubyMine 7.0, RubyMine 6.3, IntelliJ IDEA 14.0.
-
Fork Railways repository and clone it to your local machine.
-
Open the project in IntelliJ IDEA
-
Set up a JDK if it's not set (File > Project Structure > SDKs > Add New JDK). It's highly recommended to use JDK 1.6 to make plugin compatible with wider range of systems.
-
Set up IntelliJ plugin SDK. You should have RubyMine 7 installed. Go to File > Project Structure > SDKs > Add new IntelliJ IDEA Plugin SDK, name it "RubyMine 7 SDK" and select path to your RubyMine 7 installation. When you are asked to select JDK, specify JDK from previous step.
-
Select a project SDK for your project using "File > Project Structure > Project > Project SDK". Choose the plugin SDK you have created at the previous step.
-
Use "Run > Run 'Railways'" menu to test plugin inside RubyMine.
-
Use "Run > Run 'All tests'" menu to run all tests for Railways.
-
Copy and rename file
build.properties.example
tobuild.properties
. -
Edit this file and edit properties to match your environment (see comments in
build.properties
file). -
Open Ant tool window in IntelliJ IDEA and run 'all' task. Plugin jars will be placed into
release/railways-[version]/
directory. There are two versions of plugin:railways.jar
for RubyMine andrailways-idea.jar
for IntelliJ IDEA.