Rubymine related symbols
Answered
```rb
controllers/factory_controller.rb
```
```rb
views/factories/…
```
are related symbols.
It would be great if
```rb
forms/factories/…
```
could also be related
Please sign in to leave a comment.
Hello Quentin,
That doesn't seem to be an official Rails directory, and RubyMine supports the standard directories. Could you please specify why you use it?
Hello Olga, and thank you for your quick reply, as always.
Rails provides several default directories under
/appsuch ascontrollers,models, andviews.In addition to these, many common gems and patterns introduce extra directories that Rails (via Zeitwerk) also treats as top-level autoloadable resources. Examples include:
forms,decorators,services,observers,policies,serializers, etc.All these resources are closely related, and having a way to quickly navigate between them would be extremely helpful.
Could you please specify which specific gem or documented Rails pattern defines this directory in your project?
If it's not tied to an official Rails feature or a RubyMine-supported gem, we'd suggest writing your own plugin for the custom support.
Thanks for your answer. I will try to write a plugin then.
Popular gems that define or use non-official Rails directories:
app/formsapp/forms,app/operations,app/workflowsapp/forms,app/validatorsapp/services,app/interactorsapp/services,app/formsapp/policiesapp/policiesapp/serializersapp/serializersapp/serializersapp/decorators,app/presentersapp/uploadersapp/uploadersapp/componentsapp/componentsapp/workers(historically)app/workersapp/observersapp/observersapp/queries(CQRS)app/queriesThank you for the provided details. It seems that at the moment we don’t provide support for these gems, so a custom plugin would be the best option here. We have a feature request for Trailblazer though, so please add your vote there: https://youtrack.jetbrains.com/issue/RUBY-20147
Thanks for your answer. I've vibe-coded the plugin, and you it daily at work. Maybe it can help others: https://github.com/gaultierq/rubymine-rails-related-resources