Hi,

Have a HABTM model describing some users that are members of a
particular group.

Would love to use an embedded scaffold to produce a members list.

But I can not seem to grasp how to build this correctly.

Has anyone gotten this to work, and can share how to do this ?

model/users.rb:
  has_and_belongs_to_many :groups

model/group.rb:
  has_and_belongs_to_many :users

views/groups/group_roster.html.erb:

  <%= render  :active_scaffold => "Users" %>

But this lists everybody, not the ones in the particular group.


And what if I would like to make a list of all users, and their
associated groups - but only listing those that are members of
groups ?

-- 
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