docbrown/app/views/articles/index.json.jbuilder
2018-05-08 17:09:13 -04:00

4 lines
136 B
Ruby

json.array!(@articles) do |article|
json.extract! article, :id, :title, :body_html
json.url article_url(article, format: :json)
end