%= will_paginate class: "center" %>
Name | Authors | Books |
---|---|---|
<%= link_to serie.name, serie %> | <% authors = Array.new serie.books.each do |book| authors.concat book.authors end unless authors.nil? #authors.uniq!.sort! { |x,y| x.sort <=> y.sort } authors.uniq! authors.sort! { |x,y| x.sort <=> y.sort } authors.each do |author| %> <%= link_to author.name, author %> <% end end %> | <%= serie.books.count %> |