rubymine

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

RubyMine

RubyMine

RubyMine provides specialized tooling for Ruby and Rails. It excels at navigating the "Magic" of Rails (views to controllers, routes to actions).
RubyMine为RubyRails提供专属工具支持。它能出色地导航Rails的“魔法”特性(从视图到控制器,从路由到动作)。

When to Use

使用场景

  • Ruby on Rails: It connects the dots that text editors miss.
  • RSpec / Cucumber: Visual test runner and step definition navigation.
  • Debugging:
    ruby-debug-ide
    integration is seamless.
  • Ruby on Rails开发:它能连接文本编辑器无法关联的各个环节。
  • RSpec / Cucumber测试:可视化测试运行器和步骤定义导航功能。
  • 调试:与
    ruby-debug-ide
    的集成无缝流畅。

Core Concepts

核心概念

Rails Project View

Rails项目视图

Groups Models, Views, and Controllers logically.
将模型(Models)、视图(Views)和控制器(Controllers)进行逻辑分组。

ERB / Slim / Haml

ERB / Slim / Haml

Full support for template languages.
全面支持这些模板语言。

Gem Management

Gem管理

GUI for
Gemfile
and
bundle install
.
提供
Gemfile
bundle install
的图形用户界面(GUI)。

Best Practices (2025)

2025年最佳实践

Do:
  • Use "Go to Route": Search standard Rails routes and jump to controller actions.
  • Use RuboCop: Integrated linter.
  • Model Dependency Diagram: Visualize your ActiveRecord associations (has_many, belongs_to).
Don't:
  • Don't guess functionality: Ctrl+Click method names to see where they are defined (even metaprogrammed ones sometimes).
建议
  • 使用“跳转到路由”功能:搜索标准Rails路由并直接跳转到控制器动作。
  • 使用RuboCop:集成式代码检查工具。
  • 模型依赖图:可视化你的ActiveRecord关联关系(如has_many、belongs_to)。
不建议
  • 不要猜测功能实现:按下Ctrl+点击方法名称,查看其定义位置(即使是元编程实现的方法有时也能找到)。

References

参考资料