Sha256: 5ac0e51c4f92ab46b58e11c9a3dc2e7d8b90ea2cde884876fa15e7f206119c4c

Contents?: true

Size: 483 Bytes

Versions: 6

Compression:

Stored size: 483 Bytes

Contents

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

  <% 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

6 entries across 5 versions & 1 rubygems

Version Path
r_decorator-0.0.7 spec/dummy/app/views/authors/index.html.erb
r_decorator-0.0.7 spec/fake_app/authors/index.html.erb
r_decorator-0.0.6 spec/fake_app/authors/index.html.erb
r_decorator-0.0.5 spec/fake_app/authors/index.html.erb
r_decorator-0.0.4 spec/fake_app/authors/index.html.erb
r_decorator-0.0.3 spec/fake_app/authors/index.html.erb