ruby on rails - assigning a session hash with a method -
I am trying to set the value of a session hash by using a method like this:
Themethod is the return value of the method only [hashish]
omni = request.env ["omniauth.auth"] session ["devise.user_attributes"] = : I call the method directly I can and can return a hash, but when I check the value of the session, I An empty hash gets {} and when I check the value of a specific part of the session, session ["devise.user_attributes"] me zero get back. Can anyone explain why this is happening? Is there anything that I'm not supposed to understand about storing data in a session?
The problem was that how I was trying to confirm my session was being set properly Yes. The code above worked ...
Comments
Post a Comment