I have two Models with a has many through relationship, and I’m trying to get the form to work properly. I followed the Railscast here for it, and I’m also looking at the API dock on it here.
The code in question is this in my form:
<%= Region.all.each do |region| %>
<%= check_box_tag 'religion[region_ids][]', region.id %>
<%= region.name %><br />
<% end %>
It properly puts out the checkboxes and the names of the regions, but it also prints all the info on each region.
Can anyone tell me why it’s doing that?