mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
removed etc. not require
This commit is contained in:
parent
e135f13f50
commit
149f795d16
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ WARNING: Do not delimit the second hash without doing so with the first hash, ot
|
|||
|
||||
h4. Helpers for Generating Form Elements
|
||||
|
||||
Rails provides a series of helpers for generating form elements such as checkboxes, text fields, radio buttons, and so on. These basic helpers, with names ending in <notextile>_tag</notextile> such as +text_field_tag+, +check_box_tag+, etc., generate just a single +<input>+ element. The first parameter to these is always the name of the input. In the controller this name will be the key in the +params+ hash used to get the value entered by the user. For example, if the form contains
|
||||
Rails provides a series of helpers for generating form elements such as checkboxes, text fields, radio buttons, and so on. These basic helpers, with names ending in <notextile>_tag</notextile> such as +text_field_tag+, +check_box_tag+, generate just a single +<input>+ element. The first parameter to these is always the name of the input. In the controller this name will be the key in the +params+ hash used to get the value entered by the user. For example, if the form contains
|
||||
|
||||
<erb>
|
||||
<%= text_field_tag(:query) %>
|
||||
|
|
Loading…
Reference in a new issue