这应该可能比现在更容易。我只想在HTML段落元素中放置一个链接。如何在HAML中的文本字符串中放置一个链接?
%p{class: "answer"}="Please upload your data to this portal in text (tab-separated) format. Download our template #{raw(link_to 'here', '/templates/upload_template.xlsx')} for sample data and a description of each column."
Rails正在编码标签信息。我不希望标签被编码。我希望他们成为标签。
虽然我们在这,但我们可以鼓励'p.answer'语法。比'%p {class:“answer”}'好得多 – froderik