Ruby, JRuby and Rails
You can get Ruby plug-in from http://plugins.intellij.net/plugin/?id=1293 or via IntelliJ IDEA Plug-in Manager.
IntelliJ IDEA supports Ruby, JRuby and Ruby on Rails, the open source Ruby framework, for productive Ruby on Rails application development.
IntelliJ IDEA is the smart Ruby and Ruby on Rails application development environment, with intelligent Ruby code editor, which provides the complete Ruby coding assistance, with smart Ruby code completion, Ruby syntax highlighting and other productivity-aimed features: on-the-fly code inspections, error highlighting, quick-fixes, refactorings, and intention actions. Plus, the built-in unit testing, JRuby support, RDoc lookup and live templates, and more.
Ruby and JRuby Support
IntelliJ IDEA supports JRuby for running Ruby applications, with cross-resolution of classes between Ruby and Java.
- Ruby code syntax and error highlighting
IntelliJ IDEA provides automatic Ruby code syntax and error highlighting for statements, keywords, comments and other language elements. -
- Automatic Ruby code styling
IntelliJ IDEA supports automatic Ruby code styling, with brace matching and folding, custom formatting, indentation and TODO marks.
Advanced Ruby code and project navigation
With IntelliJ IDEA you can navigate your Ruby projects in a variety of ways, view and examine documentation, method parameters, context info, etc.
- Ruby-aware structure view, quick structure popup
- Go to Ruby class, file, symbol and declaration actions
-
- Quick declaration view, context and method parameter info
-
- Ruby code documentation lookup with hyperlinks and navigation
-
- Quick overriding of classes, modules and methods with active navigation gutters
-
- Ruby code usage search for local variables, method parameters, class fields and constants
-
Smart, scope based Ruby code completion
IntelliJ IDEA provides intelligent code completion for Ruby language, which includes:
- Automatic completion of built-in methods
- Smart Ruby statements completion
- Completion and automatic resolution in require and load calls
-
- Type inference-aware code completion
IntelliJ IDEA dynamically checks types for variables and method return values when you are typing the code and offers the according coding assistance. -
Smart Ruby code analysis
IntelliJ IDEA performs on-the-fly code analysis and offers one-click quick-fixes for spotted problems.
Various Ruby-aware Intention Actions are available for transforming the source code.
Multiple Ruby-aware refactorings
IntelliJ IDEA features the rich set of Ruby-aware refactorings, all ready to help you transform your project code quickly and efficiently:
- Rename refactoring (for classes, methods, variables, constants, method params etc.)
- Introduce variable
- Override method
JRuby Support
JRuby code completion
- Alternative method naming (both boolean_value and booleanValue styles supported)
-
- Both Ruby and Java-style getters and setters (both setSize and size = styles supported)
-
JRuby code inspections with instant quick-fixes
IntelliJ IDEA checks your Ruby code on-the-fly, highlighting various kinds of errors.
For all problems discovered, IntelliJ IDEA offers automatic quick-fixes.
Rails Support
RHTML support
IntelliJ IDEA fully supports RHTML, with smart code completion for both Ruby, JavaScript code and HTML tags.
It also provides automatic RHTML code styling and formatting, with braces and syntax highlighting and various RHTML-aware code inspections and quick-fixes.
YAML Support
The plugin now supports syntax highlighting and error highlighting for YAML files, based on the JvYAML library.
Advanced Rails project navigation
IntelliJ IDEA features the smart Rails project navigation with dedicated structure views, one-click switching between views and controllers and quick context menus for calling Rake tasks.
You can use the one-click active icons to quickly navigate around your application.
- Switch to view

- Switch to action

- Switch to layout
- Switch to controller
Autocompletion for rails controllers, helpers and views
- Rails specific completion for Controllers, Helpers, Views
- Completion specific for methods like url_for, redirect_to, etc.

Rails code generation
- Automated generation of Rails skeleton applications
- Advanced tools for developing Rails generators, models, etc
- Quick insert action in action controller
-
Testing Support
IntelliJ IDEA supports unit testing for Ruby projects, with:
- Quick tests launching for a specified method, class or set of tests
- Support for RSpec and Test::Unit frameworks
Miscellaneuos
- Stack trace analysis with one-click Ruby code navigation
- More than 50 Ruby and RSpec live templates
- Plugin page with plugin version, build and useful links in setting
- Dedicated Ruby run configuration and quick script execution
IntelliJ IDEA lets you quickly run your scripts through dedicated configuration, plus supports shortcuts for Rake tasks, generators, RSpec, etc. - Dedicated Rails run configurations with support for standard Rails servers (WEBrick, Mongrel, etc)
