haml - How to put %span inside of =link_to helper? -


this question has answer here:

= 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) 

how put %span t('actions.convert_to_template') inside of link_to

make helper, this

def convert_to_template_text   html = content_tag :span, t('actions.convert_to_template')   html.html_safe end 

or use block link_to


Comments