Skip to content

Commit fcc6490

Browse files
committed
Merge pull request #329 from manoj2411/readme-corrections
readme corrected for render partials collections section
2 parents 0275701 + 1cb0eb7 commit fcc6490

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)