Revision b47f3920
Added by Ohad Levy almost 14 years ago
- ID b47f3920ffb535183cfb105c3b30e4b8b499e6b6
app/views/common/_edit_habtm.erb | ||
---|---|---|
<% for association in associations -%>
|
||
| <% for association in associations -%>
|
||
<%= check_box_tag(
|
||
"#{klass.class.to_s.downcase}[#{association.class.to_s.downcase}_ids][]",
|
||
association.id, klass.send(association.class.table_name).to_a.include?(association))
|
||
%>
|
||
<%= association %>
|
||
<%= association %> |
|
||
<%= hidden_field_tag "#{klass.class.to_s.downcase}[#{association.class.to_s.downcase}_ids][]" %>
|
||
<% end -%>
|
Also available in: Unified diff
minor formatting change to allow edit habtm to look a bit cleaner