1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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>