I would like to replicate this:
<a href="thepledge.html" class="btn btn-inverse btn-mini btn-ten"><i class="icon-pencil"></i>Take The Pledge</a>
I tried this:
<%= link_to("Take the pledge", root_path, :class => "btn btn-inverse btn-mini btn-ten") do %>
<i class="icon-pencil"></i>
<% end %>
But it gave me this error:
NoMethodError at /
undefined method `stringify_keys' for "/":String
At the link_to call.
Thoughts?
1 Answer