I can't seem to get any has_many through relationships/subforms to
work on the latest AS with Rails 2.3.2.

flashpoint.rb
has_many :flashpoints_individuals, :dependent => :delete_all
has_many :individuals, :through => :flashpoints_individuals

individual.rb
has_many :flashpoints_individuals, :dependent => :delete_all
has_many :flashpoints, :through => :flashpoints_individuals

flashpoints_individual.rb
belongs_to :flashpoint
belongs_to :individual

Added a subform link in my controller:
config.nested.add_link("Flashpoints", [:flashpoints])

Load up an individual list page and click on the flashpoints link
returns:

ActiveRecord::StatementInvalid in FlashpointsController#table

Mysql::Error: Unknown column 'individuals.id' in 'where clause':
SELECT count(*) AS count_all FROM `flashpoints` WHERE
(((individuals.id = '1860')))

Am I missing something?
--~--~---------~--~----~------------~-------~--~----~
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