Problems <%== render :partial => 'narrative_block', :locals => {:entries => entries, :section => 'conditions', :status => true } %> <% entries.each_with_index do |entry, i| -%> <% if entry.status.eql? 'resolved' -%> <% else -%> <% end -%> /> /> <% if entry.ordinality -%> <% end -%> <%== code_display(entry, {'tag_name' => 'value', 'extra_content' => 'xsi:type="CD"', 'preferred_code_sets' => ['SNOMED-CT']}) %> <% if entry.status -%> <% end -%> <% end -%>