From d01a4406694dc5cdcd6eb9b7c9ae1b2bcedbace6 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 2 Oct 2014 20:51:24 +0800 Subject: [PATCH] no member rescue --- app/views/admin/patents/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/patents/_form.html.erb b/app/views/admin/patents/_form.html.erb index 66f12d5..3a3c576 100644 --- a/app/views/admin/patents/_form.html.erb +++ b/app/views/admin/patents/_form.html.erb @@ -37,7 +37,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? %>