[英]Active Admin: Is it possible to add an href to an f.input hint string?
我正在嘗試將外部鏈接添加到活動的管理表單輸入提示
form do |f|
f.input :catalog_icon,
hint: "Use a font-awesome icon class name, e.g. 'fas fa-star'."\
" See https://fontawesome.com/icons/ for a list of available icons."
...
end
這可能嗎?
不知道我可以將.html_safe
傳遞給提示字符串,以使用 html 呈現提示。 IE
form do |f|
f.input :catalog_icon,
hint: "Use a font-awesome icon class name, e.g. 'fas fa-star'."\
" See <a href=\"https://fontawesome.com/icons/\">fontawesome</a>"\
" for a list of available icons.".html_safe
...
end
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.