Closed D00mguy17298 closed 1 week ago
@D00mguy17298 sounds like something is missing in routes.rb, can you share the User model, and auth controller?
What has been written in confirmations controller file
class Users::ConfirmationsController < Devise::ConfirmationsController protected def after_confirmation_path_for(resource_name, resource) token = resource.send(:set_reset_password_token) edit_password_path(resource, reset_password_token: token) end
end
Here are routes:
Rails.application.routes.draw do devise_for :users, controllers: { confirmations: "users/confirmations" }
get "up" => "rails/health#show", as: :rails_health_check
end
Here is model file user.rb:
class User < ApplicationRecord
devise :database_authenticatable, :registerable, :recoverable, :rememberable, :validatable, :confirmable
protected
def password_required?
confirmed? ? super : false
end
end
I did it the same way as shown in the how to page
@abdulbasitkhandeveloper I'm also having this issue because I'm new to Rails. After watching the video I'm able to send the Email using the gem called mailcatcher
. Thanks you 👍
Please do not use the issues tracker for help or support, try Stack Overflow.
Environment
Current behaviour
Using the devise gem to make email only sign up according to instructions given only works until the sign-up button is pressed. Afterwards all routes are redirected to localhost:3000
Expected behaviour
All routes should work properly afterwords