<%= "Book".pluralize(@serie.books.count) %>
<% @serie.books.each do |book| %>
- <%= book.series_index.to_i %>. <%= link_to book.title, book %>
<% end %>
<%
authors = Array.new
@serie.books.each do |book|
authors.concat book.authors
end
authors.uniq!.sort! { |x,y| x.sort <=> y.sort }
if authors %>
<%= "Author".pluralize(authors.count) %>
<% authors.each do |author| %>
- <%= link_to author.name, author %>
<% end%>
<% end %>