Kta-M/minimum_crud

View on GitHub
lib/generators/templates/views/index.json.jbuilder.erb

Summary

Maintainability
Test Coverage
json.array!(@records) do |record|
  json.extract! record, :id, <%= @attributes_argument %>
  json.url url_for(action: :show, id: record, format: :json, only_path: false)
end