I'm using controller's initializer to setup stuff that I will need.
def initialize
super()
a = cookies[:a] # EXCEPTION
end
However I can't use cookies because it's null, the system hasn't read them from the header yet.
The same problem was with ASP.NET MVC, where I couldn't access the cookies in the constructor, but I could access them in the Initialize() method.
How can I get the cookies in Rails?