Skip to content

Commit cff4825

Browse files
Add button_to to skip issue with link_to in Rails 7 without turbo
1 parent a6509c2 commit cff4825

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/views/devise/sessions/new.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<%- if devise_mapping.omniauthable? %>
99
<%- resource_class.omniauth_providers.each do |provider| %>
1010
<%= link_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider), class: "button", id:"back", method: :post, data: { 'turbo-method' => :post } %><br />
11+
<%= button_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider), class: "button", method: :post %><br />
1112
<% end -%>
1213
<% end -%>
1314
</div>

0 commit comments

Comments
 (0)