docbrown/app/views/comments/index.json.jbuilder
2018-02-28 16:11:08 -05:00

4 lines
116 B
Ruby

json.array!(@comments) do |comment|
json.extract! comment, :id
json.url comment_url(comment, format: :json)
end