Forum: Ruby on Rails Validating unique habtm?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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!

Online
This topic is locked and can not be replied to.