= link_to t('actions.convert_to_template'), convert_backup_path(backup), {:title=> t('.convert_backup'), :class => 'icon convert_to_template'} if backup.built? && authorized?(backup, :update)
如何将%span t('actions.convert_to_template')放在此link_to
中答案 0 :(得分:0)
像这样做一个帮手
def convert_to_template_text
html = content_tag :span, t('actions.convert_to_template')
html.html_safe
end