Class: ResultCsvsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ResultCsvsController
- Defined in:
- app/controllers/result_csvs_controller.rb
Constant Summary
Constants inherited from ApplicationController
ApplicationController::ALLOWABLE_CONFIGS
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/result_csvs_controller.rb', line 6 def show respond_to do |format| format.json do url = CsvService.new(params[:id]).url if url render json: { url: url } else render nothing: true, status: 404 end end end end |