% opts = { data: { url: url_for, remote: true, method: :get } }
content_for :latest_filter do %>
<%= label_tag "sort", "Sort by" %>
<% end %>
<%= render'layouts/filter' %>
<%= will_paginate class: "center" %>
Name |
Authors |
Serie |
<% @books.each do |book| %>
<%= link_to book.title, book %> |
<% book.authors.each do |author| %>
<%= link_to author.name, author %>
<% end %>
|
<% if book.serie %>
<%= link_to book.serie.name, book.serie %>
<%= book.series_index.to_i %>
<% end %>
|
<% end %>
<%= will_paginate class: "center" %>