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

5 lines
175 B
Plaintext
Raw Normal View History

2013-12-03 21:56:20 +01:00
json.array!(@cities) do |city|
json.extract! city, :name, :majname, :postalcode, :inseecode, :regioncode, :latitude, :longitude
json.url city_url(city, format: :json)
end