I'm using acts_as_taggable_on to tag some models. I've tried a few things but still straggling to fabricate a User model that is marked a acts_as_tagger and models that are marked as acts_as_taggable_on.
I'm using Rails 4, therefore attr_accessible is not longer allowed. The controller that creates this Model (i.e.: post) is expecting tag as a valid parameter and I do:
class PostController
def create
......
@user.tag(@post, :with => @opts[:tag], :on => :category)
......
end
I'd like to fabricate Post passing different tags as parameter to being able to test i.e.: filter functions
I was expecting to do something like:
title
author
.....
tag 'category 1, category 2'
end
But it fails because tag isn't in the model.
Thanks in advance.
D