Skip to content

Commit

Permalink
Added author to paper page. Closes #40
Browse files Browse the repository at this point in the history
  • Loading branch information
manner committed Nov 8, 2017
1 parent 35443cd commit fcebd8f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/views/papers/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,13 @@
<strong>Year:</strong>
<%= @paper.year %>
</p>
<p>
<strong>Author:</strong>
<ul>
<%= @paper.authors.each do |author| %>
<li> <%= author.name %> </li>
<% end %>
</ul>
</p>
<%= link_to 'Edit', edit_paper_path(@paper) %> |
<%= link_to 'Back', papers_path %>

0 comments on commit fcebd8f

Please sign in to comment.