instance method ensure_session_key

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18 Private — implementation detail, not part of the public API

Signature

ensure_session_key(key)

No documentation comment.

Parameters

key req
Source
# File actionpack/lib/action_controller/session/cookie_store.rb, line 176
        def ensure_session_key(key)
          if key.blank?
            raise ArgumentError, 'A key is required to write a ' +
              'cookie containing the session data. Use ' +
              'config.action_controller.session = { :key => ' +
              '"_myapp_session", :secret => "some secret phrase" } in ' +
              'config/environment.rb'
          end
        end

Defined in actionpack/lib/action_controller/session/cookie_store.rb line 176 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Session::CookieStore

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close