Skip to content

Commit 1cb0eb7

Browse files
committed
readme corrected for render partials collections section
1 parent 0275701 commit 1cb0eb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ json.partial! partial: 'posts/post', collection: @posts, as: :post
168168

169169
# or
170170

171-
json.comments @post.comments, partial: 'comment/comment', as: :comment
171+
json.comments @post.comments, partial: 'comments/comment', as: :comment
172172
```
173173

174174
You can pass any objects into partial templates with or without `:locals` option.

0 commit comments

Comments
 (0)