Class CGIKit::Context
In: lib/cgikit/ajax/handler.rb
lib/cgikit/context.rb
lib/cgikit/rss/handler.rb
Parent: Object

Context ID Format

  • When generating a component, 0 appends to context ID.
  • When generating a dynamic element, last element ID is incremented. If in form, "name" attribute will be setted value or the last element ID.
  • In form, 0 appends to context ID. The 0 last element ID is deleted at end of the form.

Methods

Constants

SEPARATOR = '.'

External Aliases

in_form -> in_form?

Attributes

application  [RW] 
component  [RW] 
in_form  [RW] 
request  [RW] 
request_handler_key  [RW] 
response  [RW] 
sender_id  [RW] 
session  [W] 

Public Class methods

Public Instance methods

<<( string )

Alias for append

manipulating element ID

Returns the session. If the receiver doesn’t have a session, it creates and returns a new session.

[Validate]