Class: HomeController

Inherits:
Spree::BaseController show all
Defined in:
app/controllers/home_controller.rb

Instance Method Summary collapse

Methods included from SpreeBase

included

Methods inherited from ActionController::Base

#respond_with

Instance Method Details

#indexObject



5
6
7
8
9
# File 'app/controllers/home_controller.rb', line 5

def index
  @searcher = Spree::Config.searcher_class.new(params)
  @products = @searcher.retrieve_products
  respond_with(@products)
end