mbleigh/acts-as-taggable-on — Issue #233: Adding tags with Tagger.tag does not update Taggable.cached_*_list
Author: jlogsdon
Created: 2012-02-16 21:47:05+00:00
State: open

The tags properly update, but I can't figure out why my cache field isn't getting updated when the taggable model is saved.

Found this issue with a basic setup of:

class Script < ActiveRecord::Base
acts_as_taggable
end

def User < ActiveRecord::Base
acts_as_tagger
end

class ScriptsController < ApplicationController
def update
@script.attributes = params[:script]
current_user.tag(@script, on: :tags, with: params[:tag_list], skip_save: true)
if @script.save
# respond_to
end
end
end