Put span within f.submit

后端 未结 1 2073
天命终不由人
天命终不由人 2021-01-05 06:58

This may be simpe but cant seem to get it working. I have the following submit button

<%= f.submit \'Send Message\', class: \'btn submit\', id: \'validFor         


        
相关标签:
1条回答
  • 2021-01-05 07:13

    Use button_tag and put the span within the button in that way

    <%= button_tag(type: 'submit', class: "btn submit", id: 'validForm') do %>
     <span class="icon-envelope"></span> Send Message
    <% end %>
    
    0 讨论(0)
提交回复
热议问题