refactor: simplify user signup view

- Remove unnecessary turbo frame tag from the signup form
- Directly render the form within the column div

This change simplifies the user signup view by removing the
unneeded turbo frame, which was not contributing to the
functionality. The form is now rendered directly, making the
code cleaner and easier to understand.
This commit is contained in:
songtianlun 2025-01-05 01:41:45 +08:00
parent 119a34faae
commit 97c91fc8f3
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,7 @@
class SessionsController < ApplicationController class SessionsController < ApplicationController
include SessionsHelper include SessionsHelper
def new def new
end end
def create def create

View File

@ -4,8 +4,6 @@
<div class="row"> <div class="row">
<div class="col-md-6 col-md-offset-3"> <div class="col-md-6 col-md-offset-3">
<%= turbo_frame_tag "signup_form" do %> <%= render 'form' %>
<%= render 'form' %>
<% end %>
</div> </div>
</div> </div>