mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove dynamic_form gem references in guides
This gem has not been updated since April 2014 and 2 of the 4 methods it introduces have been broken since Rails 4
This commit is contained in:
parent
7575242e83
commit
c3828a1024
1 changed files with 0 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue