- <%= form_for(@book) do |f| %>
- ...
- <div class="param">
- <%= f.label :pubhouses %>
- <span class="ul">
- <% Pubhouse.all.each do |pubhouse| %>
- <label class="li"><%= check_box_tag :pubhouse_ids, pubhouse.id, @book.pubhouses.include?(pubhouse), :name => 'book[pubhouse_ids][]' %> <u><%= pubhouse.title %></u></label><br />
- <% end %>
- </span>
- </div>
- ...
- <% end %>