Still new to Rails.
I'm certain there's a naming convention for what I'm trying to do here.
You've got posts, and then you've got tags (I'm not actually making a blog but this a scenario we're all familiar with).
I'd set up my tags like this:
ruby script/generate scaffold tag name:string
Then I'd create a linking table like this:
ruby script/generate migration x_tag_post tag_id:integer post_id:integer
So then in the models I'd have xTagAsset
belongs_to :tags
belongs_to :posts
And then in Tags and Posts I'd say
has_many :x_tag_posts
Is that the right way to do this? I have a feeling there's something better.