Files
openfoodnetwork/app/views/suburbs/index.json.rabl

3 lines
120 B
Ruby

collection @suburbs
attributes :id
node(:label) { |suburb| "#{suburb.name} (#{suburb.state_name}), #{suburb.postcode}" }