Im trying to get the cookies, from the controller, with puts request.headers['Cookie']
and nothing is showing in my terminal.
My see the details in chrome tools:
How to get the cookie, please?
Edit
try this
request.headers["Cookie"]
http://api.rubyonrails.org/classes/ActionDispatch/Request.html#method-i-headers
只用饼干
puts cookies[:name]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.