Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 high_voltage gem 在我的 rails 应用程序中创建指向静态页面的链接。如何使用图片/图标作为链接?我只需要一些语法示例。谢谢,卡斯滕
如果我的理解正确,那么您的链接会指向您使用high_voltagegem 构建的静态页面。
high_voltage
要建立带有图标的链接:
<%= link_to page_path('page') do %> <i class="icon-ok icon-white"></i> # or any other html icon <% end %>