I m trying out the new Rails gem http://activeadmin.info/ and it s working great! However I can t find any documentation on how to use it across associations. For example:
class Membership < ActiveRecord::Base
belongs_to :course
belongs_to :person
class Course < ActiveRecord::Base
has_many :memberships
has_many :people, :through => :memberships
class Person < ActiveRecord::Base
has_many :memberships
has_many :courses, :through => :memberships
The membership join table includes some extra data as well (ie: attendance). I m trying to show the membership with both the course and student name - and allow filtering / sorting on those names. As far as I have found, Active Admin doesn t work across associations. Has anyone else been successful in doing that, or found another gem that does? Thanks so much!