[Rails] Re: Invalid source reflection macro?

2009-06-30 Thread Matt Jones
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

[Rails] Re: Invalid source reflection macro?

2009-06-29 Thread John Woods
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

[Rails] Re: Invalid source reflection macro?

2009-06-29 Thread Marnen Laibow-Koser
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

[Rails] Re: Invalid source reflection macro?

2009-06-29 Thread John Woods
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

[Rails] Re: Invalid source reflection macro?

2009-06-29 Thread Matt Jones
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