Newbie over here

How do you specifiy a relationship between a many to many
decomposition table?

I have been experiementing with has many through etc but i cant seem
to get it working...

My tables are student and award and the 'relationship' table is

Thanks for any responses


Have a look at the rails guide on ActiveRecord associations at It has many examples.


student has many certificate
certificate has one student

One of your problems may be that the table names would conventionally
be plural (students, awards and certificates). Stick to the rails
conventions and life will be easier.