spree/spree — Issue #961: Unable to render spree/shared/filters without an @taxon (missing Spree namespace)
Author: teonimesic
Created: 2012-01-10 22:28:39+00:00
State: open

in my app, i wanted to render filters in products#index (which doesn't has a taxon defined), but got the error: "ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::ProductFilters)"

The solution was to change line 4 on core/app/views/spree/shared/_filters.html.erb from:
<% filters = @taxon ? @taxon.applicable_filters : [ProductFilters.all_taxons] %>
to:
<% filters = @taxon ? @taxon.applicable_filters : [Spree::ProductFilters.all_taxons] %>