How can I use edit_in_place on three different models from a View for a model those three belong_to?
- by Angela
I have a model called Campaign. In the controller, I do the following to list, in order, the three Models that belong_to a Campaign:
<% @campaign_events = campaign_events %>
<% @campaign_events.each do |campaign_event| %>
<% model_name = campaign_event.class.name.tableize.singularize %>
<p>
<%= link_to…