I have a pretty simple HABTM set of models
class Tag < ActiveRecord::Base has_and_belongs_to_many :posts end class Post < ActiveRecord::Base
Set the uniq option:
class Tag < ActiveRecord::Base has_and_belongs_to_many :posts , :uniq => true end class Post < ActiveRecord::Base has_and_belongs_to_many :tags , :uniq => true