Ruby CGI::HtmlExtension Functions
EditRocket provides the following information on CGI::HtmlExtension functions in the Ruby source code builder.
a(href = "") - Generate an Anchor element as a string.
base(href = "") - Generate a Document Base URI element as a String.
blockquote(cite = nil) - Generate a BlockQuote element as a string.
caption(align = nil) - Generate a Table Caption element as a string.
checkbox(name = "", value = nil, checked = nil) - Generate a Checkbox Input element as a string.
checkbox_group(name = "", *values) - Generate a sequence of checkbox elements, as a String.
file_field(name = "", size = 20, maxlength = nil) - Generate an File Upload Input element as a string.
form(method = "post", action = script_name, enctype = "application/x-www-form-urlencoded") - Generate a Form element as a string.
hidden(name = "", value = nil) - Generate a Hidden Input element as a string.
html(attributes = {}) - Generate a top-level HTML element as a string.
image_button(src = "", name = nil, alt = nil) - Generate an Image Button Input element as a string.
img(src = "", alt = "", width = nil, height = nil) - Generate an Image element as a string.
multipart_form(action = nil, enctype = "multipart/form-data") - Generate a Form element with multipart encoding as a String.
password_field(name = "", value = nil, size = 40, maxlength = nil) - Generate a Password Input element as a string.
popup_menu(name = "", *values) - Generate a Select element as a string.
radio_button(name = "", value = nil, checked = nil) - Generates a radio-button Input element.
radio_group(name = "", *values) - Generate a sequence of radio button Input elements, as a String.
reset(value = nil, name = nil) - Generate a reset button Input element, as a String.
scrolling_list(name = "", *values) - "Alias for #popup_menu"
submit(value = nil, name = nil) - Generate a submit button Input element, as a String.
text_field(name = "", value = nil, size = 40, maxlength = nil) - Generate a text field Input element, as a String.
textarea(name = "", cols = 70, rows = 10) - Generate a TextArea element, as a String.