2
我想複製此:如何在link_to幫助器中執行<i>標記?
<a href="thepledge.html" class="btn btn-inverse btn-mini btn-ten"><i class="icon-pencil"></i>Take The Pledge</a>
我嘗試這樣做:
<%= link_to("Take the pledge", root_path, :class => "btn btn-inverse btn-mini btn-ten") do %>
<i class="icon-pencil"></i>
<% end %>
但它給了我這個錯誤:
NoMethodError at/
undefined method `stringify_keys' for "/":String
在link_to
電話。
想法?