Frederick Cheung wrote in post #1035726:
> On Dec 8, 2:15pm, Ori Kremer <[email protected]> wrote:
>
> why validate the inclusion at all ? I'd validate the presence of the
> foo_id column and use a foreign key constraint to ensure that it can't
> contain junk.
>
> Fred

You're right, there's no need to validate with inclusion as the foreign 
key constraint is enough.

Works great.

Thanks,
Ori

-- 
Posted via http://www.ruby-forum.com/.

-- 
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