Hi I'm using `spree-frontend` in my application wh...
# support
a
Hi I'm using
spree-frontend
in my application which I override to customise the frontend. I would like my header nav items to be whatever is populated in the Taxonomy table. I can see
@taxonomies
is declared for the
home_controller
but then as soon as I navigate to another link
@taxonomies
isn't declared anymore and my header breaks. Is there a simple way to override all the frontend controllers to have access to the taxonomies? Do I just monkeypatch/decorate
Spree::StoreController
?
w
Following Rails conventions, you could define your own view helper
1
a
That's true, probably the better option. Thank you!
w
you're welcome!