Home> Products> IntelliJ IDEA> Features & Screenshots> Ruby/ JRuby & Rails

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

JRuby support

IntelliJ IDEA supports JRuby for running Ruby applications, with cross-resolution of classes between Ruby and Java

Smart, scope based JRuby-aware 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

Smart, scope based JRuby-aware Ruby code completion

to the top

Ruby code syntax and error highlighting

IntelliJ IDEA provides automatic Ruby code syntax and error highlighting for statements, keywords, comments and other language elements.

Ruby code syntax and error highlighting, with brace matching and folding

to the top

Automatic Ruby code styling

IntelliJ IDEA supports automatic Ruby code styling, with brace matching and folding, custom formatting, indentation and TODO marks.

to the top

Smart Ruby code analysis

IntelliJ IDEA performs on-the-fly code analysis and offers one-click quick-fixes for spotted problems.

On-the-fly Ruby code analysis with quick-fixes

Various Ruby-aware Intention Actions are available for transforming the source code.

JRuby and Ruby-aware intention actions

to the top

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
  • Go to Ruby class, file, symbol and declaration actions
  • Quick declaration view, context and method parameter info
  • Quick declaration view, context and method parameter info
  • Ruby code documentation lookup with hyperlinks and navigation
  • Ruby code documentation lookup with hyperlinks and navigation
  • Quick overriding of classes, modules and methods with active navigation gutters
  • Quick overriding of classes, modules and methods with active navigation gutters
  • Ruby code usage search for local variables, method parameters, class fields and constants
  • Ruby code usage search for local variables, method parameters, class fields and constants

to the top

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

to the top

Unit 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

refactoring

to the top

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.

to the top

Miscellaneous

  • 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

to the top

Rails Support

RHTML support

IntelliJ IDEA fully supports RHTML, with smart code completion for both Ruby, JavaScript code and HTML tags.

RHTML support, with smart code completion, including 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.

RHTML code style and formatting, with braces and syntax highlighting 

to the top

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.

Advanced Rails project view with navigation

to the top

Miscellaneous

  • Dedicated Rails run configurations with support for standard Rails servers (WEBrick, Mongrel, etc)
  • Automated generation of Rails skeleton applications
  • Advanced tools for developing Rails generators, models, etc
  • Quick insert action in action controller
  • Quick insert action in action controller

to the top