Ruby on Rails - has one and belongs to many relationship?

I believe these are the associations and migrations that you need.

I believe these are the associations and migrations that you need: class Descriptor Timestamps end create_table :descriptors do |t| t. String :name ... t. Timestamps end Note that if you want to store extra information against the association between Arg and Descriptor then you'll need a join model which you get using the has_many :through association.

You're actually going to want an intermediate table between these two objects. In the database world this is called a "mapping" table. In Ruby you want to use the has_many through association.

railscasts.com/episodes/47-two-many-to-many Updated with better article explaining concept.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions