Forum: Ruby on Rails Validating unique habtm?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
352a4e316ecc2deca387fa7a0e06682d?d=identicon&s=25 Andrew Hite (ahite)
on 2007-01-05 03:54
I have a text box field that I'm using the populate my habtm
relationship between widgets and gadgets.  I do not, however, want a
gadget to be linked more than once to a widget.  I figure the best way
to do this is using validation in the model, but I'm not sure how I
would go about validation using habtm.  How could I achieve this?

Thanks in advance!

This topic is locked and can not be replied to.