Class: Spree::TaxonsController

Inherits:
BaseController show all
Defined in:
app/controllers/spree/taxons_controller.rb

Instance Method Summary collapse

Methods included from Core::ControllerHelpers

included

Instance Method Details

#showObject



8
9
10
11
12
13
14
15
16
# File 'app/controllers/spree/taxons_controller.rb', line 8

def show
  @taxon = Taxon.find_by_permalink!(params[:id])
  return unless @taxon

  @searcher = Spree::Config.searcher_class.new(params.merge(:taxon => @taxon.id))
  @products = @searcher.retrieve_products

  respond_with(@taxon)
end