search for: schools_users

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

2011 Mar 01
0
Association data within a fields_for
How do I use association data from within a fields_for? I''ve got a has many through relationship between users, schools and schools_users. A user can have multiple schools and a school has multiple users. In schools_users there is a user_role field in addition to the common user_id and school_id. In the show view I have: <% @school.schools_users.each do |user| %> <tr><td><%= user.user.first_name %> <%=...