Files
linguist/samples/Ruby/index.json.jbuilder
2015-03-06 07:07:41 +01:00

5 lines
153 B
Ruby

json.array!(@courts) do |court|
json.extract! court, :id, :name_r, :region, :region_r, :email, :website
json.url court_url(court, format: :json)
end