Class: SaasPlatform::SearchController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- SaasPlatform::SearchController
- Defined in:
- app/controllers/saas_platform/search_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/saas_platform/search_controller.rb', line 5 def index @query = params[:q] @results = SearchService.new(current_account, @query).perform if @query.present? respond_to do |format| format.html format.turbo_stream end end |