4 lines
116 B
Ruby
4 lines
116 B
Ruby
json.array!(@comments) do |comment|
|
|
json.extract! comment, :id
|
|
json.url comment_url(comment, format: :json)
|
|
end
|