<div class="box_relationships" id="<%= association_name %>">

  <h2>
    <%= association_name.titleize.humanize.pluralize %>
    <small><%= add_new %></small>
  </h2>

  <% if @items.any? -%>
    <%= table %>
    <%= paginate(@items, Typus.pagination.merge(:anchor => association_name)) %>
  <% else %>
    <p><%= Typus::I18n.t("No %{resources} found.", :resources => association_name.humanize.downcase.pluralize) %></p>
  <% end %>

</div>

<div class="box_relationships" id="<%= association_name %>">

  <h2>
    <%= @model_to_relate.model_name.human.pluralize %>
    <small><%= add_new %></small>
  </h2>

  <% if @items.any? -%>
    <%= table %>
    <%= paginate(@items, Typus.pagination.merge(:anchor => association_name)) %>
  <% else %>
    <p><%= Typus::I18n.t("No %{resources} found.", :resources => association_name.humanize.downcase.pluralize) %></p>
  <% end %>

</div>

Use model_name from related model in has_many template
Use model_name from related model in has_many template

Signed-off-by: Francesc Esplugas <352bf3ec073356d71f47cfcff2e546760ec67027@gmail.com>
