validates_presence_of :region, :if => ["CA", "US"].include?(:country) validates_presence_of :region, :if => Proc.new { |a| ["CA", "US"].include?(a.country) } The top one works, but the bottom does not. Obviously the top is easier to read, but I am just curious to why the bottom one returns false. Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---