Example
| Before | After |
|---|---|
| View foo.html.erb:
|
View foo.html.erb:
Partial view _bar.html.erb
|
- Open a view in the editor.
- Select the desired fragment of valid code. For example, in case of HTML, your selection must contain matching opening and closing tags.
- On the main menu, or on the context menu of the selection, choose .
- In the Extract Partial dialog box, specify the desired partial view name without extension and the leading underscore, and click OK.


