如何在button_to标签中设置单独的单词样式?

时间:2014-12-29 20:12:24

标签: html ruby-on-rails button

基本上我有两个相关的问题 - 如何在button_to标签中设置单独的单词样式。

" text" .html_safe似乎不适用于button_to标记。

1 个答案:

答案 0 :(得分:0)

来自API Docs

<%= button_to [:make_happy, @user] do %>
  Make happy <strong><%= @user.name %></strong>
<% end %>
相关问题