Can I use a link_to to generate a link with a span inside?

后端 未结 5 1700
醉话见心
醉话见心 2020-12-31 03:29

I am basically trying to get this result:

        
            Log in
            

        
5条回答
  •  自闭症患者
    2020-12-31 04:05

    You can use the block form of link_to for that:

    <%= link_to "#", :class => "button small-button green-button" do %>
      Log in
      
    <% end %>
    

提交回复
热议问题