Class: Protege::Traces::SearchesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Protege::Traces::SearchesController
- Defined in:
- app/controllers/protege/traces/searches_controller.rb
Overview
Trace search — the console's cross-run finder over captured turns (see TraceSearch), reached from
the traces sidebar's search link. Nested in the Traces module because search is a view of
traces, not a child record a trace owns (unlike a thread, which genuinely has messages).
Instance Method Summary collapse
-
#show ⇒ void
Show the search form and, in the sidebar, the traces matching the query params (see
TraceSearch).
Instance Method Details
#show ⇒ void
This method returns an undefined value.
Show the search form and, in the sidebar, the traces matching the query params (see
TraceSearch). Blank params yield no results. Serves GET /traces/search.
13 14 15 16 |
# File 'app/controllers/protege/traces/searches_controller.rb', line 13 def show @search = TraceSearch.from_params(params) @traces = @search.results end |