This feature is supported in the Ultimate edition only.
The following is only valid when Ruby Plugin is installed and enabled!
In this section:
Introduction
IntelliJ IDEA helps populate your Rails applications with the stubs of all the required elements, and provides the following ways of launching the generators:
- The standard ⌘N⌃N⌘N⌃N functionality.
- command on the main menu.
- command on the main menu
generate script with the element name specified as a parameter, and a
list of arguments. As a result, IntelliJ IDEA produces the required application elements and places them
to the proper locations of the directory structure.
Creating Rails application elements
- Do one of the following:
- On the main menu, choose .
- Press ⇧⌘A⇧⌘A⌘3⌃⇧A⌃⇧A, start typing
Run Rails generatorsand press ⏎⏎⏎⏎⏎:
- In the pop-up frame that opens, start typing the desired generator name, or its part. As you type,
the suggestion list shrinks to show the matching entries only:

If you cannot find the generator you need, reload generators. To do that, just choose [Reload generators list] from the pop-up menu.
- In the dialog box that opens, specify the name of the new application element, and a list of arguments.
Besides that, choose the desired environment:
- If necessary, select the check boxes that correspond to the general options of the
generatescript. - Click OK. IntelliJ IDEA runs the
generatescript and displays output messages in the dedicated tab of the Run tool window:
Note that the action of creating Rails application elements can be rolled back. So doing, all the created files will be deleted:
