diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-09-24 15:39:45 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-09-24 15:39:45 -0500 |
commit | 530102f656068274be8e3ea5fc873a3432d8e397 (patch) | |
tree | ff08846cd5af4b0b859951001f162802c04c8316 /guides/source | |
parent | bc87712bc6938f445d7441c5709a89aeaa1abb54 (diff) | |
download | rails-530102f656068274be8e3ea5fc873a3432d8e397.tar.gz rails-530102f656068274be8e3ea5fc873a3432d8e397.tar.bz2 rails-530102f656068274be8e3ea5fc873a3432d8e397.zip |
add a note about DynamicForm in error_messages_for section [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/i18n.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/guides/source/i18n.md b/guides/source/i18n.md index f3360156cc..09e89938bb 100644 --- a/guides/source/i18n.md +++ b/guides/source/i18n.md @@ -816,7 +816,8 @@ So, for example, instead of the default error message `"can not be blank"` you c #### 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. +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: @@ -831,6 +832,9 @@ en: 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. You can install it as a gem by adding this line to your Gemfile: `gem 'dynamic_form'`. + ### Overview of Other Built-In Methods that Provide I18n Support Rails uses fixed strings and other localizations, such as format strings and other format information in a couple of helpers. Here's a brief overview. |