README.md in jbuilder-2.4.1 vs README.md in jbuilder-2.5.0
- old
+ new
@@ -166,10 +166,10 @@
json.partial! partial: 'posts/post', collection: @posts, as: :post
# or
-json.comments @post.comments, partial: 'comment/comment', as: :comment
+json.comments @post.comments, partial: 'comments/comment', as: :comment
```
You can pass any objects into partial templates with or without `:locals` option.
```ruby