Re: [Rails] accessing from both ends of has many through relationship

2012-08-03 Thread Colin Law
On 3 August 2012 15:57, Martyn W. wrote: > I have a 'has many through' relationship in my models. I am trying to > access objects from either side of this relationship, with mixed > results.Here are my models: > > class Material < ActiveRecord::Base > attr_accessible :description, :numbe

[Rails] accessing from both ends of has many through relationship

2012-08-03 Thread Martyn W.
I have a 'has many through' relationship in my models. I am trying to access objects from either side of this relationship, with mixed results.Here are my models: class Material < ActiveRecord::Base attr_accessible :description, :number has_many :parts has_many :work_tickets,