From d73fa9a841458461661b762aaf0496c8cee77da5 Mon Sep 17 00:00:00 2001 From: Adrian Date: Thu, 9 Nov 2017 21:59:10 +0100 Subject: [PATCH] added list of authors to paper show page, solved #30 --- app/views/papers/show.html.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/views/papers/show.html.erb b/app/views/papers/show.html.erb index d336cbc..761de2c 100644 --- a/app/views/papers/show.html.erb +++ b/app/views/papers/show.html.erb @@ -14,3 +14,8 @@ year: <%= @paper.year %>

+ +

Authors:

+<% @paper.authors.each do |author| %> +

<%= author.first_name %> <%= author.last_name %>

+<% end %>