hidden(name = "", value = nil)
Instance Public methods
Generate a Hidden Input element as a string.
The attributes of the element can be specified as two arguments,
name
and value
.
Alternatively, the attributes can be specified as a hash.
hidden("name") # <INPUT TYPE="hidden" NAME="name"> hidden("name", "value") # <INPUT TYPE="hidden" NAME="name" VALUE="value"> hidden("NAME" => "name", "VALUE" => "reset", "ID" => "foo") # <INPUT TYPE="hidden" NAME="name" VALUE="value" ID="foo">
Please login to continue.