Class: ClwyChinaCity::DataController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ClwyChinaCity::DataController
- Defined in:
- app/controllers/clwy_china_city/data_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
10 11 |
# File 'app/controllers/clwy_china_city/data_controller.rb', line 10 def index end |
#show ⇒ Object
5 6 7 8 |
# File 'app/controllers/clwy_china_city/data_controller.rb', line 5 def show data = ClwyChinaCity.list(params[:id]) render json: data, layout: nil end |