data_controller.rb 252 B

12345678910111213
  1. require_dependency "china_city/application_controller"
  2. module ChinaCity
  3. class DataController < ApplicationController
  4. def show
  5. data = ChinaCity.list(params[:id])
  6. render json: data, layout: nil
  7. end
  8. def index
  9. end
  10. end
  11. end