method
set_cookie
v2.1.0 -
Show latest stable
- Class:
ActionController::CookieJar
set_cookie(options)private
Builds a CGI::Cookie object and adds the cookie to the response headers.
The path of the cookie defaults to "/" if there’s none in options, and everything is passed to the CGI::Cookie constructor.