How do you find relationships using has_and_belongs_to_many?

Post < Model
  has_and_belongs_to_many :tags

Tag < Model
# none

Then u needs a table whiteout id.
posts_tags with column post_id and tag_id

That's it

/Frank Vilhelmsen