this question has answer here:
- put haml tags inside link_to helper 3 answers
= 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
Comments
Post a Comment