IntelliJ Idea setup for Ruby development
This is an internal guide I wrote at my former workplace for developers or any other IDE users on how to set up IntelliJ Idea to work with our Ruby on Rails codebase. All sensitive information and details are edited from both images and text.
π§ Getting startedβ
If you are completely new to IntelliJ, here are links to some docs that will help you get started:
- How to open/import/export a project
- How to create a CLI launcher
- How to install a Ruby plugin to develop with Ruby
βοΈ Project structure configβ
This is the sample config for <cool_codebase> that works as of August 2025.
Projectβ

Modulesβ

Libraries and Artifactsβ
It's ok to leave both empty.
Facetsβ

SDKsβ

Global Librariesβ

π΄ Errorsβ
Most likely you will see a lot of errors, warnings and squiggly lines in your editor:

The IntelliJ analyzer is a bit too thorough for the dynamically typed Ruby, so itβs okay to silence either all of them, or everything except syntax errors.
π οΈ Troubleshootingβ
π± Source root is not configuredβ
In this case IntelliJ will either be yelling at you with an error, or you will not see the correct files and folders in your project (app, test, lib, etc.)
To fix this, you need to go to the Modules settings tab and add the content root here:

Navigate into the <a_codebase> directory on your machine and click βOpenβ.
When the root is configured, you will see all the correct files and directories in your project.
π± Ruby Interpreter is not configuredβ
This may mean that IntelliJ does not recognize your project as a Ruby project. Go to the Project Structure settings and set up all the correct modules and SDKs. Refer to the example project structure above.
If you did, and IntelliJ still thinks you are programming in something else (the indicator would be that your files and folders donβt have Ruby-specific icons), try:
- going to the Modules tab,
- removing any modules you see there, including the Ruby module,
- importing Ruby module again.
See this post on the IntelliJ support forum for reference.
π± Can not save project structure settingsβ
If you make changes to the project structure settings, and clicking "ok" or "apply" doesn't do anything, it's likely because IntelliJ is indexing the project or doing something else in the background. In the older versions of Idea you might see the progress bar at the bottom of the editor screen. In the newer versions' UI you might see a pop-up somewhere like this one:

... or you might not see anything at all, just the view that appears stuck.
If this is happening, here are some things to try:
-
Wait for a few minutes and then close and reopen Project Structure. When you reopen it, you may see that the settings are already applied.
-
Reset your config and start over:
- shut down IntelliJ
- remove the
.ideafolder from your project - reopen your project in IntelliJ
This is a bit radical and counter-intuitive, but can help apply your intended settings.