nav = [ link_to(t('manage.actions.index', model: resource_class.model_name.human(count: 2)), resource.class, class: 'button small secondary'), link_to(t('manage.actions.edit'), [:edit, resource], class: 'button small'), resource_actions(resource), ].compact.join(' ').html_safe article dl - resource_class.attribute_names.each do |attr| dt= resource_class.human_attribute_name(attr) dd= resource.public_send(attr)