README.md in jbuilder-1.4.0 vs README.md in jbuilder-1.4.1
- old
+ new
@@ -131,10 +131,10 @@
if current_user.admin?
json.visitors calculate_visitors(@message)
end
# You can use partials as well. The following line will render the file
-# RAILS_ROOT/app/views/api/comments/_comments, and set a local variable
+# RAILS_ROOT/app/views/api/comments/_comments.json.jbuilder, and set a local variable
# 'comments' with all this message's comments, which you can use inside
# the partial.
json.partial! 'api/comments/comments', comments: @message.comments
```