From 787bbb8fbab0fe2ef2822d403078b72106365627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 20 Feb 2015 21:01:08 -0200 Subject: Oops :bomb: --- guides/source/active_record_validations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source') diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index cd7d349c82..d65c15bcf3 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -1078,7 +1078,7 @@ Another way to do this is using `[]=` setter ```ruby class Person < ActiveRecord::Base def a_method_used_for_validation_purposes - errors.messages.add(:name, "cannot contain the characters !@#%*()_-+=") + errors.add(:name, "cannot contain the characters !@#%*()_-+=") end end -- cgit v1.2.3