I get the same error message: "An object with the method include? is
required must be supplied as the :in option of the configuration
hash"

On Feb 18, 4:33 pm, jemminger <[email protected]> wrote:
> try
>
> validates_inclusion_of :coupon, :in => lambda { |prod| prod.coupons.map
> (&:code) }
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to