我没有在我的 gmail 帐户中收到确认电子邮件但是在服务器中我可以看到确认 link

i didn't recieve confirmation email in my gmail account But in the server i can see confirmation link

这是我的服务器的日志。我没有在我的 gmail 中收到任何确认消息,但在服务器中我找到了确认 link

    Started POST "/users/sign_in" for ::1 at 2022-02-21 14:49:05 +0500
Processing by Devise::SessionsController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"c8NHhHXHicKqOpfe0a8VZURCuYESM0PjzeldzVcgqJqOfuWH2uS8KUT/I0LRQiJQ3qNux9B5+l6h9H/pNSSzxA==", "user"=>{"email"=>"ifaheem520@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ?  [["email", "ifaheem520@gmail.com"], ["LIMIT", 1]]
  ↳ /home/hamid/.rvm/gems/ruby-2.7.3/gems/activerecord-5.2.6.2/lib/active_record/log_subscriber.rb:98
Redirected to http://localhost:3000/dashboard
Completed 302 Found in 290ms (ActiveRecord: 0.4ms)


Started GET "/dashboard" for ::1 at 2022-02-21 14:49:06 +0500
Processing by HomeController#dashboard as HTML
  Rendering home/dashboard.html.erb within layouts/application
  Rendered home/dashboard.html.erb within layouts/application (0.3ms)
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?  [["id", 1], ["LIMIT", 1]]
  ↳ app/views/layouts/application.html.erb:15
Completed 200 OK in 19ms (Views: 17.8ms | ActiveRecord: 0.1ms)


Started DELETE "/users/sign_out" for ::1 at 2022-02-21 14:49:08 +0500
Processing by Devise::SessionsController#destroy as HTML
  Parameters: {"authenticity_token"=>"SnDHlGHRWTVad5WMCmMYUuHUmOOblh0jUgHHMCUlq+LVeavIRTsEUnbOocJyc1A8CJfQyqyitDugA9lESQVgFg=="}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?  [["id", 1], ["LIMIT", 1]]
  ↳ /home/hamid/.rvm/gems/ruby-2.7.3/gems/activerecord-5.2.6.2/lib/active_record/log_subscriber.rb:98
   (0.1ms)  begin transaction
  ↳ /home/hamid/.rvm/gems/ruby-2.7.3/gems/activerecord-5.2.6.2/lib/active_record/log_subscriber.rb:98
   (0.1ms)  commit transaction
  ↳ /home/hamid/.rvm/gems/ruby-2.7.3/gems/activerecord-5.2.6.2/lib/active_record/log_subscriber.rb:98
Redirected to http://localhost:3000/
Completed 302 Found in 8ms (ActiveRecord: 0.6ms)


Started GET "/" for ::1 at 2022-02-21 14:49:08 +0500
Processing by HomeController#homepage as HTML
  Rendering home/homepage.html.erb within layouts/application
  Rendered home/homepage.html.erb within layouts/application (0.5ms)
Completed 200 OK in 25ms (Views: 23.0ms | ActiveRecord: 0.0ms)

我不知道为什么会这样,谁能告诉我如何解决这个问题

我没有看到您的应用程序已发送实际电子邮件。您是否正确设置了可确认模型?还要确保您的邮件程序配置正确。为了接收确认电子邮件,您需要为您的用户模型设置 :confirmable 模型。以下是有关如何在设计 gem 中设置 :confirmable 模型的说明:https://github.com/heartcombo/devise/wiki/How-To%3A-Add-%3Aconfirmable-to-Users