search for: delete_tag

Displaying 1 result from an estimated 1 matches for "delete_tag".

Did you mean: delete_at
2006 Jan 22
2
acts_as_taggable: weird SQL problem with untagging
...---------------------------------------------------------------- class TagResource belongs_to :user end --------------------------------------------------------------------------------------------------- And I''m trying to remove a tag from all files belonging to the current user: def delete_tag tag = @params[:tag] affected = Resource.find_tagged_with({ :any => tag, :conditions => "tags_resources.user_id = #{session[:user].id}" }) affected.each {|res| a = res.tag_names - [tag] a = ["untagged"] if a.empty? res.tag a, :c...