Rails Framework Support
In this section:
Prerequisite
Rails framework should be downloaded and installed on your computer.
Important notes
- IntelliJ IDEA supports Rails framework versions from 1.2 to 5
- Rails 3.x requires Ruby 1.8.6 or higher.
- Rails 4 requires Ruby 1.9.x or higher.
- Rails 5 requires Ruby 2.2.2 or higher.
Rails support
Rails support in IntelliJ IDEA includes:
- Dedicated project types, where the desired Rails version is defined.
- Special Rails view to represent the logical structure of a Rails application.
- Rails generators.
- Means of navigation between Rails components.
- Possibility to run Rake tasks.
- Possibility to define object-relational mappings.
- Analysis of the models and their relationships with Model Dependency diagram.
- Complete editing assistance (syntax and error highlighting, code completion for Rails application elements and Rake tasks)
- Rails-aware refactorings (Rename Refactorings, Extract code into a partial view, etc.).
- Rails console, where you can execute Rails commands without leaving the IDE.
- Sprockets are supported.
Rails-specific procedures
- Creating Rails-Based Projects
- Creating Rails Application Elements
- Creating Controllers and Actions
- Creating Views from Actions
- Injecting Ruby Code in View
- Extract code into a partial view
- Generating Archives
- Generating Tests for Rails Applications
- Running Rails Scripts
- Running Rails Server
- Rails-Specific Navigation
- Running Rails Console
- Working with Models in Rails Applications
- Zeus
- Rails/Spring Support in IntelliJ IDEA
Last modified: 24 July 2018