:ruby image = nil description = nil if post.post.attribute?(:image) && (image = post.post.image.static_file) description = post.post.image.value['description'] end .col.mb-3.p-1 = render('bootstrap/card', image: image, description: description, title: post.title, class: 'h-100') do - if post.post.attribute?(:description) %p.card-text= post.post.description.value = link_to 'Editar', post.path, class: 'btn btn-secondary'