Sha256: 2473b97c69ab9b8af72848969b764f9c826efd58af435a0ff5598ce91fdee89a

Contents?: true

Size: 442 Bytes

Versions: 15

Compression:

Stored size: 442 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

15 entries across 15 versions & 2 rubygems

Version Path
active_decorator-0.6.0 spec/fake_app/app/views/authors/index.html.erb
lulalala_presenter-0.0.1 spec/fake_app/app/views/authors/index.html.erb
active_decorator-0.5.3 spec/fake_app/app/views/authors/index.html.erb
active_decorator-0.5.2 spec/fake_app/app/views/authors/index.html.erb
active_decorator-0.5.1 spec/fake_app/app/views/authors/index.html.erb
active_decorator-0.5.0 spec/fake_app/app/views/authors/index.html.erb
active_decorator-0.4.0 spec/fake_app/authors/index.html.erb
active_decorator-0.3.4 spec/fake_app/authors/index.html.erb
active_decorator-0.3.3 spec/fake_app/authors/index.html.erb
active_decorator-0.3.2 spec/fake_app/authors/index.html.erb
active_decorator-0.3.1 spec/fake_app/authors/index.html.erb
active_decorator-0.3.0 spec/fake_app/authors/index.html.erb
active_decorator-0.2.1 spec/fake_app/authors/index.html.erb
active_decorator-0.2.0 spec/fake_app/authors/index.html.erb
active_decorator-0.1.0 spec/fake_app/authors/index.html.erb