# Rails

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com.cn/en-us/help/ruby/llms.txt).

> **TL;DR**
> `Settings | Languages & Frameworks | Rails | Paths`

RubyMine recognizes custom paths in your Rails applications and engines alongside the default ones, like `app`, `app/controllers`, `app/models`, and so on. You can configure these paths manually or let the IDE automatically detect them. This enables all code insight features for sources stored beyond the default locations.

![Rails paths settings](https://resources.jetbrains.com.cn/help/img/idea/2026.3/rails_paths_settings.png)

Import automatically from Rails
: If selected, RubyMine will attempt to import paths in the background every time you open the project.

![Add a path](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.add.svg)
: Add
:
: Add a new path key.

![Remove a path](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.remove.svg)
: Remove
:
: Remove a path key.

![Import paths](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.import.svg)
: Import from Rails
:
: Import path keys and paths from Rails manually.

![Restore defaults](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.vcs.revert.svg)
: Restore Defaults
:
: Restore path keys and paths to the defaults that Rails uses.

Name
: Provide a name for the path key.

![Add a path](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.add.svg)
: Add
:
: Add a new path for the selected path key.

![Remove a path](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.remove.svg)
: Remove
:
: Remove a path for the selected path key.

