# Dynamic Meta data

**URL:** <https://discuss.rubyonrails.org/t/dynamic-meta-data/51234>\
**Category:** rubyonrails-talk\
**Created:** [April 27, 2010, 4:45pm UTC](https://discuss.rubyonrails.org/t/dynamic-meta-data/51234 "2010-04-27T16:45:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gumby](https://avatars.discourse-cdn.com/v4/letter/g/bb73d2/32.png) [@Gumby](https://discuss.rubyonrails.org/u/Gumby)\
**Post date:** [April 27, 2010, 4:45pm UTC](https://discuss.rubyonrails.org/t/dynamic-meta-data/51234/1 "2010-04-27T16:45:50Z")

</div>

What is the best way to have a table that defines what the thing is and another table that defines if you hae it or not.. maybe a table will describe what i want better!! :

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;----------------define the items in one table &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;V ITEM1 [\_] ITEM2 [\_] ITEM3 ITEM4 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;... [\_] ITEMX

&nbsp;&nbsp;^------------------------Define if the user has it in another

Is this polymorphic? please point me where to learn how to do this the right way..

---

<div class="post-metadata">

**Author:** ![Tim\_Shaffer](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@Tim\_Shaffer](https://discuss.rubyonrails.org/u/Tim_Shaffer)\
**Post date:** [April 27, 2010, 5:56pm UTC](https://discuss.rubyonrails.org/t/dynamic-meta-data/51234/2 "2010-04-27T17:56:18Z")

</div>

This is a simple many-to-many relationship.

See here: [ActiveRecord::Associations::ClassMethods](http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html)
