I’m using acts_as_taggabe_on and I’m working with two contexts. My models are:
class Company < ActiveRecord::Base
has_many :users
acts_as_tagger
end
class Expense < ActiveRecord::Base
belongs_to :user
acts_as_taggable_on :tags, :projects
end
Now in my controller… with @company.owned_tags I have tags for both contexts of the owner @company. How to get tags for the project context of the owner @company?
If on rails 2.x
on rails 3
Basically the owned_tags is just an activerecord relationship.