Anyone know if I can put a hash in the cookie? Something like this: cookies [: test] = {: top => 5,: middle => 3,: bottom => 1}
Thanks
With Rails 4.1 I had to use the parentheses like this. Without that it gave an error.
cookies[:test] = JSON.generate({a: 1, b: "2", hello: "world"})