Class: AsyncResponse::ResponsesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- AsyncResponse::ResponsesController
- Defined in:
- app/controllers/async_response/responses_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
12 13 14 15 |
# File 'app/controllers/async_response/responses_controller.rb', line 12 def destroy job.destroy redirect_to async_response.responses_path end |
#index ⇒ Object
4 5 6 |
# File 'app/controllers/async_response/responses_controller.rb', line 4 def index render locals: { jobs: jobs } end |
#show ⇒ Object
8 9 10 |
# File 'app/controllers/async_response/responses_controller.rb', line 8 def show render json: job end |