Displaying 1 result from an estimated 1 matches for "subscribed_to".
2006 Jul 27
0
CRUD, REST and associations
...eader[magazine_ids][]'', '''' %>
<table>
<tr>
<td></td>
</tr>
<% for magazine in reader.magazines %>
<tr>
<td><%= check_box_tag ''reader[magazine_ids][]'', magazine.id,
@reader.subscribed_to?(magazine) %></td>
<td><%=h (magazine.title) %></td>
</tr>
<% end %>
</table>
As the Rails API docs state, has_many :through associations are
read-only. Instead, changes are handled through the join model. So,
let''s ameliorate this shor...