OK, so the relationship is: Program has many :events And each Event belongs to an Organizer (who has_many :events)
In a form for Program/edit, I'd like to list the associated events, and with each of those entries, also have access to each Organizer so I can do something like:
textfield(event.name) | textfield(event.date) | label(event.organizer.name)
So...
<% form_for([:admin, program]) do |f| %>
...
<h3>Event Data Fields</h3>
<table>
<% f.fields_for :events do |event_form| %>
<tr class="line_item">
<td><%= event_form.text_field :name %></td>
<td><%= event_form.text_field :date %></td>
<td><%= event_form.text_field "organizer.name", :disabled=>true %></td>
</tr>
<% end %>
</table>
<p><%= f.submit "Submit" %></p>
<% end %>
Obviously, event_form.text_field "organizer.name" won't work, but that's the concept