1 2 3 4
json.array!(@matches) do |match| json.extract! match, :id, :tournament_id json.url match_url(match, format: :json) end