Sha256: e0e6039c830721d85bca5b603ea62bfe1fc9522c9d5215a810310f10ffb8e97d

Contents?: true

Size: 433 Bytes

Versions: 12

Compression:

Stored size: 433 Bytes

Contents

<% @authors.each do |author| %>
  <%= author.name %>
  <%= author.reverse_name %>

  <% if params[:partial] == 'collection' %>
    <%= render author.books %>
  <% elsif params[:partial] == 'locals' %>
    <% author.books.each do |book| %>
      <%= render partial: 'books/book_locals', locals: {b: book} %>
    <% end %>
  <% else %>
    <% author.books.each do |book| %>
      <%= render book %>
    <% end %>
  <% end %>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
active_decorator-1.3.3 test/fake_app/app/views/authors/index.html.erb
active_decorator-1.3.2 test/fake_app/app/views/authors/index.html.erb
active_decorator-1.3.1 test/fake_app/app/views/authors/index.html.erb
active_decorator-1.3.0 test/fake_app/app/views/authors/index.html.erb
active_decorator-1.2.0 test/fake_app/app/views/authors/index.html.erb
active_decorator-1.1.1 test/fake_app/app/views/authors/index.html.erb
active_decorator-1.1.0 test/fake_app/app/views/authors/index.html.erb
active_decorator-1.0.0 test/fake_app/app/views/authors/index.html.erb
active_decorator-0.9.0 test/fake_app/app/views/authors/index.html.erb
active_decorator-0.8.0 test/fake_app/app/views/authors/index.html.erb
active_decorator-0.7.1 test/fake_app/app/views/authors/index.html.erb
active_decorator-0.7.0 test/fake_app/app/views/authors/index.html.erb