added more items to the set to improve explanation of validates_exclusion_of

This commit is contained in:
Rajinder Yadav
2010-10-04 00:02:09 -04:00
parent 0da0aa4cd9
commit 018bf0f575

View File

@@ -235,7 +235,7 @@ This helper validates that the attributes' values are not included in a given se
<ruby>
class Account < ActiveRecord::Base
validates_exclusion_of :subdomain, :in => %w(www),
validates_exclusion_of :subdomain, :in => %w(www us ca jp),
:message => "Subdomain %{value} is reserved."
end
</ruby>