From 88df67bacda9f22f1d415b1590089f329eb8a0f0 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 2 Oct 2014 20:35:36 +0800 Subject: [PATCH] member nil rescue --- app/views/admin/journal_papers/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/journal_papers/_form.html.erb b/app/views/admin/journal_papers/_form.html.erb index 46f5fd0..77f44ab 100644 --- a/app/views/admin/journal_papers/_form.html.erb +++ b/app/views/admin/journal_papers/_form.html.erb @@ -40,7 +40,7 @@
<%= @member.name rescue ''%> - <%= f.hidden_field :member_profile_id, :value => @member.id %> + <%= f.hidden_field :member_profile_id, :value => @member.id if !@member.nil? %>