Have you tried passing the missing join directly, via the :join
option?
--Matt Jones
On Jun 29, 2:58 pm, John Woods wrote:
> So the plugin appears to work. FYI, it's here:
> git://github.com/ianwhite/nested_has_many_through.git
>
> Unfortunately, I'm still having trouble setting up the conditio
So the plugin appears to work. FYI, it's here:
git://github.com/ianwhite/nested_has_many_through.git
Unfortunately, I'm still having trouble setting up the condition. I've
renamed a few things and added appropriate associations:
class Gene < ActiveRecord::Base
belongs_to :species
has_many :g
I'll look at the rest of your example later, but...
John Woods wrote:
> The plural model name comes from the Agile Development book. They have
> an example--categories_products, linking categories to products--which
> they turn into a model. Should it be renamed category_product?
[...]
If I had
The plural model name comes from the Agile Development book. They have
an example--categories_products, linking categories to products--which
they turn into a model. Should it be renamed category_product? Or is
categories_product correct? I'm a bit confused about this, so thanks
for bringing it up
The :orthologs association is the problem - Rails doesn't support
nesting :through associations. I recall there being a plugin around
someplace to do it, so you may want to look into that.
Depending on what you need, a simple instance method may work as well.
For example (on Gene):
def orthologs
5 matches
Mail list logo