Collect users who posted items with ActsasTaggable on Tag in rails 3

I am using Rails 3 and Acts as taggable on in my application.

I am fetching the articles associated with the tag by

Article.tagged_with(“tagname”)

and

Blog.tagged_with(“tagname”)

Now i would like to collect all the users from the above i.e…, people
who are all posted articles and blogs with this tag Please suggest me…

How do your Article and Blog models relate to the User model?

Assuming User has many Articles and Blogs you can simply do this:

user = User.find_by_whatever(“something”)
user.articles.tagged_with(“tagname”)
user.blogs.tagged_with(“tagname”)