I am basically trying to get this result:
<a href="#" class="button small-button green-button">
Log in
<span class="button-right"></span>
</a>
But I don't know how to do this with a link_to in rails 3 ?
You can use the block form of link_to
for that:
<%= link_to "#", :class => "button small-button green-button" do %>
Log in
<span class="button-right"></span>
<% end %>