diff options
author | npezza93 <npezza93@gmail.com> | 2017-06-13 10:54:35 -0400 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-11-25 11:55:02 -0500 |
commit | 260d6f112a0ffdbe03e6f5051504cb441c1e94cd (patch) | |
tree | 17ddb1bff53c590fe7b3d4b36e6c7aa6ccb4a2a3 /guides | |
parent | f76ca450f5027a4fa578d939b35fe4f608f2423e (diff) | |
download | rails-260d6f112a0ffdbe03e6f5051504cb441c1e94cd.tar.gz rails-260d6f112a0ffdbe03e6f5051504cb441c1e94cd.tar.bz2 rails-260d6f112a0ffdbe03e6f5051504cb441c1e94cd.zip |
Change `form_with` to generates ids by default
When `form_with` was introduced we disabled the automatic
generation of ids that was enabled in `form_for`. This usually
is not an good idea since labels don't work when the input
doesn't have an id and it made harder to test with Capybara.
You can still disable the automatic generation of ids setting
`config.action_view.form_with_generates_ids` to `false.`
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/configuring.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 6e129a5680..4bfcc1e21a 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -578,6 +578,8 @@ Defaults to `'signed cookie'`. * `config.action_view.form_with_generates_remote_forms` determines whether `form_with` generates remote forms or not. This defaults to `true`. +* `config.action_view.form_with_generates_ids` determines whether `form_with` generates ids on inputs. This defaults to `true`. + ### Configuring Action Mailer There are a number of settings available on `config.action_mailer`: |