forked from saurabh/orbit4-5
Rescue nil for page_parts
This commit is contained in:
parent
32c6975f76
commit
ce525719b7
|
@ -29,7 +29,7 @@
|
|||
<label class="control-label muted"><%= t(:tags) %></label>
|
||||
<div class="controls">
|
||||
<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) %>
|
||||
</label>
|
||||
<% @tags.each do |tag| %>
|
||||
|
|
Loading…
Reference in New Issue