Class: Workarea::Storefront::SearchesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Workarea::Storefront::SearchesController
- Defined in:
- app/controllers/workarea/storefront/searches_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#current_layout, #current_user_info, #health_check, #layout_content
Methods included from OrderLookup
Methods included from CurrentCheckout
#clear_current_order, #completed_order, #completed_order=, #current_checkout, #current_order, #current_order=, #current_shipping, #current_shippings, #logout
Instance Method Details
#show ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/workarea/storefront/searches_controller.rb', line 6 def show if search_query.blank? flash[:error] = t('workarea.storefront.flash_messages.no_search_query') redirect_back fallback_location: root_path return end response = Search::StorefrontSearch.new(params.to_unsafe_h).response handle_search_response(response) end |