Skip to content

Commit

Permalink
Merge pull request #41208 from ttilberg/patch-1
Browse files Browse the repository at this point in the history
Update name of input in tip to match example [ci skip]
  • Loading branch information
kamipo committed Jan 25, 2021
1 parent 657b316 commit bc92f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/form_helpers.md
Expand Up @@ -73,7 +73,7 @@ This will generate the following HTML:

TIP: Passing `url: my_specified_path` to `form_with` tells the form where to make the request. However, as explained below, you can also pass ActiveRecord objects to the form.

TIP: For every form input, an ID attribute is generated from its name (`"q"` in above example). These IDs can be very useful for CSS styling or manipulation of form controls with JavaScript.
TIP: For every form input, an ID attribute is generated from its name (`"query"` in above example). These IDs can be very useful for CSS styling or manipulation of form controls with JavaScript.

IMPORTANT: Use "GET" as the method for search forms. This allows users to bookmark a specific search and get back to it. More generally Rails encourages you to use the right HTTP verb for an action.

Expand Down

0 comments on commit bc92f02

Please sign in to comment.