agenda-libre-ruby/app/views/cities/index.json.jbuilder

5 lines
175 B
Ruby

json.array!(@cities) do |city|
json.extract! city, :name, :majname, :postalcode, :inseecode, :regioncode, :latitude, :longitude
json.url city_url(city, format: :json)
end