I'm stuck trying to access instance variables from one controller/view to another.
ProductsController
def index
@searcher = build_searcher(params.merge(include_images: true))
@products = @searcher.retrieve_products
end
I want to gain access to @products in _header.html.erb partial, which is a part of the main layout page application.html.erb.
headerfor some other action, where@productsis not defined?