5 lines
175 B
Ruby
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
|