IntelliJ IDEA 2023.3 Help

Extract Partial Dialog

Refactor | Extract Partial

Use this dialog to create a partial view file from the selected fragment of HTML code in a view. The selection must be valid and contain matching opening and closing tags.

Prerequisites

Before you start working with Ruby, make sure that Ruby plugin is installed and enabled. Press Ctrl+Alt+S, go to Plugins and inspect the Installed tab to ensure the plugin is enabled.

Also make sure that the following prerequisites are met:

  • Ruby SDK is downloaded and installed on your machine.

  • The required framework SDKs are downloaded and installed on your machine.

For more information, refer to their respective download and installation pages:

Item

Description

Name

Type the string from which IntelliJ IDEA will generate the resulting partial view name in accordance with the Rails naming conventions. The entered string should not contain extension and the leading underscore.

Last modified: 11 February 2024