method

set_cookie

rails latest stable - Class: ActionController::CookieJar

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.2.1) is shown here.

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.