mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
this reads better, i don't know what the other 'so on' are, doesn't help reader imho
This commit is contained in:
parent
4e074c7cc6
commit
5cdb46d9fb
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
|
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+, 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 and radio buttons. These basic helpers, with names ending in <notextile>_tag</notextile> such as +text_field_tag+ and +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>
|
<erb>
|
||||||
<%= text_field_tag(:query) %>
|
<%= text_field_tag(:query) %>
|
||||||
|
|
Loading…
Reference in a new issue