The password reset function is not working.
Is think is because of the missing
default_url_options[:host]
Log:
Dec 19 12:36:08 {"method":"GET","path":"/users/password/new","format":"html","controller":"Devise::PasswordsController","action":"new","status":200,"allocations":7675,"duration":17.41,"view":15.55,"db":0.0}
Dec 19 12:36:10 {"method":"GET","path":"/","format":"html","controller":"HomeController","action":"index","status":200,"allocations":6426,"duration":10.45,"view":9.04,"db":0.0}
Dec 19 12:36:13 {"method":"POST","path":"/users/password","format":"turbo_stream","controller":"Devise::PasswordsController","action":"create","status":500,"allocations":4048,"duration":405.92,"view":0.0,"db":16.17}
Dec 19 12:36:13 2025-12-19T11:36:13Z
Dec 19 12:36:13 ActionView::Template::Error (Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true)
Dec 19 12:36:13 Caused by: ArgumentError (Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true)
Dec 19 12:36:13 2025-12-19T11:36:13Z
Dec 19 12:36:13 Information for: ActionView::Template::Error (Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true):
Dec 19 12:36:13 2:
Dec 19 12:36:13 3: <p>Someone has requested a link to change your password. You can do this through the link below.</p>
Dec 19 12:36:13 4:
Dec 19 12:36:13 5: <p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p>
Dec 19 12:36:13 6:
Dec 19 12:36:13 7: <p>If you didn't request this, please ignore this email.</p>
Dec 19 12:36:13 8: <p>Your password won't change until you access the link above and create a new one.</p>
Dec 19 12:36:13 2025-12-19T11:36:13Z
Dec 19 12:36:13 app/views/devise/mailer/reset_password_instructions.html.erb:5
Dec 19 12:36:13 2025-12-19T11:36:13Z
Dec 19 12:36:13 Information for cause: ArgumentError (Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true):
Dec 19 12:36:13 2025-12-19T11:36:13Z
Dec 19 12:36:13 app/views/devise/mailer/reset_password_instructions.html.erb:5
