Hi!

I have three models connected to each other:

Class Model PFeat < ActiveRecord::Base
  has_and_belongs_to_many :plasms
end

Cass Model Plasm < ActiveRecord::Base
  has_and_belongs_to_many :pfeats
  has_and_belongs_to_many :clines
end

Class Model Cline < ActiveRecord::Base
  has_and_belongs_to_many :plasms
end


So the Model Plasm is connected via habtm to the two other models.

In the Cline controller I would like to list all plasms, that have a
certain pfeat

I would like to limit the Cline Model as follows:

Class Model Cline < ActiveRecord::Base
  has_and_belongs_to_many :plasms, conditions => 'plasmids.plfeatures
= something'
end

So I would like the Object plasmids inside the Cline controller to be
limited to those plasms that have the Pfeat 'something'.

So Plfeat is not equal but only contains since the plfeat is an array
of values, is it not?

I would really need some help on how to implement this.

Thanks in advance
Juergen



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to