You can use the scopt attribute of validates_uniqueness_of But this would require, that the intermediate table between users/bands has it's own model
in this model (BandsUsers) validates_uniqueness_of :user_id, :scope => band_id --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

