-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use I18n error message for uniqueness validation on Tag#name
This is the first custom error message so a locale file is added. For any non-en locale, this error message will raise a translation missing error. Apps that uses this gem should add their own i18n translations.
- Loading branch information
Hector Zhao
committed
Feb 2, 2022
1 parent
ed70273
commit c9aeb0d
Showing
3 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
en: | ||
activerecord: | ||
errors: | ||
models: | ||
acts_as_taggable_on/tag: | ||
attributes: | ||
name: | ||
not_unique: has already been taken (using %{type_of_comparison} comparison) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters