■ エラー内容
ArgumentError in PasswordResets#create
Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
■ やったこと
下記のそれぞれのファイルに※1を記述
config/environment/development.rb
config/environment/production.rb
config/environment/test.rb
※1
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
ホストの設定について、上記の記述だけでは不足でしょうか?
それともエラーの原因がほかにあるのでしょうか…。
もしお分かりなる方いましたら教えてください。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。