member nil rescue

This commit is contained in:
Harry Bomrah 2014-10-02 20:35:36 +08:00
parent 736ba69bc4
commit 88df67bacd
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@
<label class="control-label muted"><%= t("personal_plugins.author") %></label> <label class="control-label muted"><%= t("personal_plugins.author") %></label>
<div class="controls"> <div class="controls">
<%= @member.name rescue ''%> <%= @member.name rescue ''%>
<%= f.hidden_field :member_profile_id, :value => @member.id %> <%= f.hidden_field :member_profile_id, :value => @member.id if !@member.nil? %>
</div> </div>
</div> </div>