small medium large xlarge

Generic-user-small
03 May 2015, 08:00
Vishal Deepak (3 posts)

I was looking at the forums complete this task

-Add a new variable to the session to record how many times the user has accessed the index action.

  • Reset the counter to zero whenever the user adds something to the cart.

I have successfully completed the tasks but with some confusion. I created a session[:counter] in the store_controller.rb file, how was this accessible in line_item_controller.rb?

You must be logged in to comment