search for: program_us

Displaying 1 result from an estimated 1 matches for "program_us".

Did you mean: program's
2010 Jan 25
0
has_many, :finder_sql, setting attributes
...WHERE t.team_id = #{id}'' has_many :user_programs, :through => :user_teams end Now what I would like to do is be able to edit the users on a team from the Edit Team view using checkboxes, that is, include something like this in my edit form: <% for user in @program_users %> <div> <%= check_box_tag "team[user_ids][]", user.id, @team.users.include?(user) %> <%= user.name %> </div> <% end %> And then in my TeamsController, do the standard : def update # in case all users are deselected, cre...