How do I wrap if-else statement in a content_tag?
def entry_template
content_tag(:div, :class => "item_title") do
"<h3>
if x == 'garage'
#{entry.garage.name}
else
'Not garage'
end
</h3>"
end
end
Thanks!