Displaying 1 result from an estimated 1 matches for "asset_categories".
Did you mean:
assets_categories
2005 Dec 20
0
validates_uniqueness_of on has_and_belongs_to_many
...gory. Finally, an asset can be shared across many categories. So
my question is how do you check the uniqueness across a join table?
This does not compile....
has_and_belongs_to_many :categories, :foreign_key => ''asset_id''
validates_uniqueness_of :data, :scope => ''asset_categories.category_id''
Thanks,
Mark
--
--------------------------------------------------------------------
I am Mark Daggett and I approve this message.