未验证 提交 681b0c1f 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #36146 from carlesjove/remove_outdated_gem_from_guides

[Guides] Remove dynamic_form gem reference in guides

[ci skip]
......@@ -992,27 +992,6 @@ So, for example, instead of the default error message `"cannot be blank"` you co
| numericality | :odd | :odd | - |
| numericality | :even | :even | - |
#### Translations for the Active Record `error_messages_for` Helper
If you are using the Active Record `error_messages_for` helper, you will want to add
translations for it.
Rails ships with the following translations:
```yaml
en:
activerecord:
errors:
template:
header:
one: "1 error prohibited this %{model} from being saved"
other: "%{count} errors prohibited this %{model} from being saved"
body: "There were problems with the following fields:"
```
NOTE: In order to use this helper, you need to install [DynamicForm](https://github.com/joelmoss/dynamic_form)
gem by adding this line to your `Gemfile`: `gem 'dynamic_form'`.
### Translations for Action Mailer E-Mail Subjects
If you don't pass a subject to the `mail` method, Action Mailer will try to find
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册