I am trying to store an array on rails an getting error on the decoding. I use cookies[:test] = Array.new And when I am trying to decode @test = ActiveSupp
cookies[:test] = Array.new
Use session, not cookies. You don't have to decode it, rails handles that for you. Create the session the same way you already are:
session
cookies
session[:test] = Array.new
and when you need it, access it like normal
session[:test] # => []