session info or variables in layouts

Hi Shagy,

Put a before_filter at the top of your controller.

before_filter :find_cart, :except => [:index, :other_actions_you_want_to_exclude]

It'll run the find_cart action for every action in the controller except the ones you tell it not to.

hth,
Bill