Type:
Module

Mixin module providing HTML generation methods.

For example,

1
2
cgi.a("http://www.example.com") { "Example" }
  # => "<A HREF=\"http://www.example.com\">Example</A>"

Modules Html3, Html4, etc., contain more basic HTML-generation methods (#title, #h1, etc.).

See class CGI for a detailed example.

base
  • References/Ruby on Rails/Ruby/Classes/CGI/CGI::HtmlExtension

base(href = "") Instance Public methods Generate a Document Base

2025-01-10 15:47:30
reset
  • References/Ruby on Rails/Ruby/Classes/CGI/CGI::HtmlExtension

reset(value = nil, name = nil) Instance Public methods Generate a reset button

2025-01-10 15:47:30
file_field
  • References/Ruby on Rails/Ruby/Classes/CGI/CGI::HtmlExtension

file_field(name = "", size = 20, maxlength = nil) Instance Public methods Generate

2025-01-10 15:47:30
multipart_form
  • References/Ruby on Rails/Ruby/Classes/CGI/CGI::HtmlExtension

multipart_form(action = nil, enctype = "multipart/form-data") Instance Public methods Generate

2025-01-10 15:47:30
image_button
  • References/Ruby on Rails/Ruby/Classes/CGI/CGI::HtmlExtension

image_button(src = "", name = nil, alt = nil) Instance Public methods Generate

2025-01-10 15:47:30
scrolling_list
  • References/Ruby on Rails/Ruby/Classes/CGI/CGI::HtmlExtension

scrolling_list(name = "", *values) Instance Public methods Alias for:

2025-01-10 15:47:30
checkbox_group
  • References/Ruby on Rails/Ruby/Classes/CGI/CGI::HtmlExtension

checkbox_group(name = "", *values) Instance Public methods Generate a sequence

2025-01-10 15:47:30
img
  • References/Ruby on Rails/Ruby/Classes/CGI/CGI::HtmlExtension

img(src = "", alt = "", width = nil, height = nil) Instance Public methods Generate

2025-01-10 15:47:30
submit
  • References/Ruby on Rails/Ruby/Classes/CGI/CGI::HtmlExtension

submit(value = nil, name = nil) Instance Public methods Generate a submit button

2025-01-10 15:47:30
textarea
  • References/Ruby on Rails/Ruby/Classes/CGI/CGI::HtmlExtension

textarea(name = "", cols = 70, rows = 10) Instance Public methods Generate a

2025-01-10 15:47:30