Hi everyone. I’m trying to figure out how to implement site-wide
tagging for my website. I have a rails-based weblog that supports
tagging posts. There’s a has_and_belongs_to_many relationship between
posts and tags. I’d like to now reuse those tags for tagging links as
well. Where I have a posts_tags table with post_id and tag_id fields,
I’d like to add a link_id field. I’d like to use just one table so that
I can easily pull all posts and links associated with a given tag. If I
make a has_and_belongs_to_many relationship between tags and links I
seem to need a links_tags table. How do I make the links/tags
relationship appear in the same table as the posts/tags relationship?
Thank you for the help.