%= render'layouts/filter' %> <%= will_paginate class: "center" %>
<%= t :col_serie_name %> | <%= t :col_serie_authors %> | <%= t :col_serie_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 %> |