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
‘certificate’.

Thanks for any responses

Dale

On 12 March 2010 14:32, woodsy0130 [email protected] wrote:

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
‘certificate’.

Have a look at the rails guide on ActiveRecord associations at
http://guides.rubyonrails.org/. It has many examples.

Colin

student has many certificate
certificate has one student

On Fri, Mar 12, 2010 at 10:34 PM, Colin L. [email protected]
wrote:

Have a look at the rails guide on ActiveRecord associations at
.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


Thanks:
Rajeev sharma

On 12 March 2010 14:32, woodsy0130 [email protected] wrote:

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
‘certificate’.

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.

Colin