Sha256: 48308518654111b011a12e10f6b6586946f9d9e6c4655d6ea4ad67368d25b6ca

Contents?: true

Size: 452 Bytes

Versions: 2

Compression:

Stored size: 452 Bytes

Contents

<% @authors.each do |author| %>
  <%= author.deco.name %>
  <%= author.deco.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

2 entries across 2 versions & 1 rubygems

Version Path
r_decorator-0.0.2 spec/fake_app/authors/index.html.erb
r_decorator-0.0.1 spec/fake_app/authors/index.html.erb