Skip to content

Commit

Permalink
disable turbo on these forms.
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed Apr 18, 2024
1 parent e7091a0 commit 5082523
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/sessions/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<% unless email_login_only %>
<h4>Sign in via email:</h4>
<% end %>
<%= form_with model: @user, url: users_login_path, id: 'login', html: { method: :post } do |f| %>
<%= form_with model: @user, url: users_login_path, id: 'login', html: { method: :post, data: {turbo: false} } do |f| %>
<% if controller.class.to_s.include?("SessionsController") && @user.errors.any? %>
<div id="error_explanation">
<div class="alert alert-danger">
Expand Down Expand Up @@ -66,7 +66,7 @@
<div class="col-md-6">
<div class="h-100 p-5 bg-light border rounded-3">
<div>
<%= form_for(@user, url: users_signup_path, id: 'signup', html: { method: :post }) do |f| %>
<%= form_for(@user, url: users_signup_path, id: 'signup', html: { method: :post, data: {turbo: false} }) do |f| %>

<h2>Sign up to get started!</h2>
<% if controller.class.to_s.include?("SignupsController") && @user.errors.any? %>
Expand Down

0 comments on commit 5082523

Please sign in to comment.