Hi,
I have a model like this,
class Member < ActiveRecord::Base
belongs_to :master, :class_name => 'Member', :foreign_key =>
'master_id'
has_many :slaves, :class_name => 'Member', :order => 'name
ASC', :foreign_key => 'master_id'
end
If a member is a master, its master_id is nil. Otherwise, master_id
points to its master.
In ActiveScaffold, the listing of members shows a nested scaffold to
its slave members. In the table, it shows the right count of slaves.
However when click the like and invoke the nested form, it just shows
the master again, not any slave.
active_scaffold :member do |config|
config.columns = [:name, :slaves]
end
Any suggestion please?
Thanks,
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---