Trying to create the below using content_tag:
<p><span class="field-label">Address: </span><%= @patient.address1 %></p>
<%= content_tag :p, @patient.address1 do %>
<%= content_tag :span, "Address: ", :class => 'field-label'%>
<%end%>
This returns:
<p><span class='field-label>Address: </span></p>
As mentioned in the docs, if you use the block format then the second argument becomes the options. Ie. you can't mix the content as a parameter and the content as a block. So to solve this you need to put your
@patient.address1
within the block: