Class: ActiveEndpoint::ProbesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ActiveEndpoint::ProbesController
- Defined in:
- app/controllers/active_endpoint/probes_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
17 18 19 20 |
# File 'app/controllers/active_endpoint/probes_controller.rb', line 17 def destroy ActiveEndpoint::Probe.find(params[:id]).destroy redirect_to :back end |
#index ⇒ Object
5 6 7 |
# File 'app/controllers/active_endpoint/probes_controller.rb', line 5 def index @probes_group = ActiveEndpoint::Probe.group_by_endpoint end |
#show ⇒ Object
9 10 11 |
# File 'app/controllers/active_endpoint/probes_controller.rb', line 9 def show @probes = ActiveEndpoint::Probe.where(endpoint: params[:id]) end |
#show_response ⇒ Object
13 14 15 |
# File 'app/controllers/active_endpoint/probes_controller.rb', line 13 def show_response @probe = ActiveEndpoint::Probe.find(params[:probe_id]) end |