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: docs/general/rendering.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,23 @@ PR please :)
113
113
114
114
#### root
115
115
116
-
PR please :)
116
+
The resource root is derived from the class name of the resource being serialized.
117
+
e.g. `UserPostSerializer.new(UserPost.new)` will be serialized with the root `user_post` or `user_posts` according the adapter collection pluralization rules.
118
+
119
+
Specify the root by passing it as an argument to `render`. For example:
0 commit comments