You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,10 +31,13 @@ You can define a reusable ERB partial directly in your view:
31
31
<p>Foo content</p>
32
32
<% end %>
33
33
34
+
<%= render_inline_partial :foo %>
34
35
<%= render_inline_partial :foo %>
35
36
```
36
37
37
-
This example defines a partial template named `:user_row`. You can define inline partials with **any name**, using either a **symbol** or a **string**.
38
+
The same inline partial can be rendered multiple times within the same view.
39
+
40
+
You can define inline partials with **any name**, using either a **symbol** or a **string**. This example defines a partial template named `:user_row`:
0 commit comments