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.
Andrew H. (Guest)
on 2007-01-05 04: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.