From 97c91fc8f303e53d4fe7dea9dadd2f9a71ce4596 Mon Sep 17 00:00:00 2001 From: songtianlun Date: Sun, 5 Jan 2025 01:41:45 +0800 Subject: [PATCH] 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. --- app/controllers/sessions_controller.rb | 1 + app/views/users/new.html.erb | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 768a8f0..d72792f 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -1,6 +1,7 @@ class SessionsController < ApplicationController include SessionsHelper def new + end def create diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index e029996..78bd0b3 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -4,8 +4,6 @@
- <%= turbo_frame_tag "signup_form" do %> - <%= render 'form' %> - <% end %> + <%= render 'form' %>