# File lib/taggable.rb, line 519 def tag_remove(tags, options = {}) options = { :separator => ' '}.merge(options) attributes = options[:attributes] || {} # parse the tags parameter tag_names = ActiveRecord::Acts::Taggable.split_tag_names(tags, options[:separator], normalizer) # remove the tag names to the collection tag_names.each do |name| tag_record = tag_model.find(:first, :conditions=>["#{tag_model_name} = ?",name]) || tag_model.new(tag_model_name.to_sym => name) if tag_record tag_collection.delete(tag_record) end end end