Rescue nil for page_parts

This commit is contained in:
manson 2014-07-16 17:13:42 +08:00
parent 32c6975f76
commit ce525719b7
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@
<label class="control-label muted"><%= t(:tags) %></label> <label class="control-label muted"><%= t(:tags) %></label>
<div class="controls"> <div class="controls">
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" <%= @subpart.tags.include?("all") ? "checked='checked'" : "" %> value="all" name="page_part[sub_parts_attributes][<%= @select_number %>][tags][]"> <input type="checkbox" <%= @subpart.tags.include?("all") ? "checked='checked'" : "" rescue false %> value="all" name="page_part[sub_parts_attributes][<%= @select_number %>][tags][]">
<%= t(:all) %> <%= t(:all) %>
</label> </label>
<% @tags.each do |tag| %> <% @tags.each do |tag| %>