petities/petitions.eu

View on GitHub
app/views/petitions/index.json.jbuilder

Summary

Maintainability
Test Coverage
json.array!(@petitions) do |petition|
  json.extract! petition, :id, :title, :text
  json.url petition_url(petition, format: :json)
end