small medium large xlarge

27 Dec 2011, 08:13
berlin (1 post)

I want cart to be shown on every page/ I can do this by adding @cart=current_cart to every method in every controller, but is there other variants? Something that when I add a product to my cart and the go to the /orders/show/ or to the /users/edit the cart still be at the left side of the screen

And the same thing with the Users. How to show on every page?

Sorry for my english? i’m not from english-speaking country

04 Jan 2012, 04:52
Eric Rykwalder (6 posts)

You’d probably use a filter on the ApplicationController that sets the values needed.

You must be logged in to comment