Skip to content
Browse files

don't show books in INDEX

  • Loading branch information...
1 parent dcd96e9 commit e989c5d397e3f2b5f7d93de0ef8b58935f0a6299 @joemsak joemsak committed Jan 5, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 app/views/accounts/_account.html.erb
View
8 app/views/accounts/_account.html.erb
@@ -20,7 +20,9 @@
<p><strong>AKA:</strong> <%= account.nicks.collect {|n| n.value }.to_sentence %></p>
<% end %>
- <% unless account.books.empty? %>
- <p><%= render :partial => 'book', :collection => account.books %></p>
- <% end %>
+ <% if full -%>
+ <% unless account.books.empty? %>
+ <p><%= render :partial => 'book', :collection => account.books %></p>
+ <% end %>
+ <% end -%>
</article>

0 comments on commit e989c5d

Please sign in to comment.
Something went wrong with that request. Please try again.