Since I guess you are a beginner with Rails I suggest you work right
through a good tutorial such as railstutorial.org, which is free to
use online. That will show you the basics of rails including the
various associations.
Colin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.