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