Help me! ... Problem with associations,

Hi there,

I've three tables: release, branch and platform defined as follows:

  release (id)
  branch (id, release_id)
  platform (id)

Associations:

Could someone please help me with this?

Could someone please help me with this?

Have a look at "has_many :through", that should do what you need.

--max

Max,

thank you very much. I've tried the following,

  In release.rb (model),

   has_many :platforms, :through => :branches

  this results in an error, which asks to specify, :source also (I
doubt this is because platform_id is not present in the branches table
directly!)..

  neither :source => release nor :source => platforms works.

  I'm stuck here!