bootstrap icon in a submit_tag rails form

后端 未结 1 983
一生所求
一生所求 2021-02-02 07:00

I have this form:

<%= form_tag(user_pages_path(current_user), :method => \"get\") do %>
  <%= text_field_tag :update, \'yes\', type: \"hidden\"  %>         


        
相关标签:
1条回答
  • 2021-02-02 07:17

    You can use button_tag instead of submit_tag:

    <%= button_tag(type: "submit", class: "btn btn-default") do %>
        Update list <i class="icon-repeat"></i>
    <% end %>
    
    0 讨论(0)
提交回复
热议问题