diff options
author | Leandro Facchinetti <me@leafac.com> | 2014-11-26 23:39:02 -0500 |
---|---|---|
committer | Leandro Facchinetti <me@leafac.com> | 2014-11-26 23:39:02 -0500 |
commit | b4b6c556a7135f490720b55a916126ee88e326a6 (patch) | |
tree | 3fdc9b6d0c30d814d47c661ec36256e7d99a4e90 /guides | |
parent | 44033d8f428079d824d9b306af94f7ab0eb9952a (diff) | |
download | rails-b4b6c556a7135f490720b55a916126ee88e326a6.tar.gz rails-b4b6c556a7135f490720b55a916126ee88e326a6.tar.bz2 rails-b4b6c556a7135f490720b55a916126ee88e326a6.zip |
Fix format "Form Helpers" guide
The `"_tag"` was interpreted as the start of a italics.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/form_helpers.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/form_helpers.md b/guides/source/form_helpers.md index 9ced77dfd7..55244cae7a 100644 --- a/guides/source/form_helpers.md +++ b/guides/source/form_helpers.md @@ -96,7 +96,7 @@ form_tag({controller: "people", action: "search"}, method: "get", class: "nifty_ ### Helpers for Generating Form Elements -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 "_tag" (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. When the form is submitted, the name will be passed along with the form data, and will make its way to the `params` hash in the controller with the value entered by the user for that field. For example, if the form contains `<%= text_field_tag(:query) %>`, then you would be able to get the value of this field in the controller with `params[:query]`. +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 `_tag` (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. When the form is submitted, the name will be passed along with the form data, and will make its way to the `params` hash in the controller with the value entered by the user for that field. For example, if the form contains `<%= text_field_tag(:query) %>`, then you would be able to get the value of this field in the controller with `params[:query]`. When naming inputs, Rails uses certain conventions that make it possible to submit parameters with non-scalar values such as arrays or hashes, which will also be accessible in `params`. You can read more about them in [chapter 7 of this guide](#understanding-parameter-naming-conventions). For details on the precise usage of these helpers, please refer to the [API documentation](http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html). |