最近の勉強で学んだ事を、ノート代わりにまとめていきます。
主に自分の学習の流れを振り返りで残す形なので色々、省いてます。
Webエンジニアの諸先輩方からアドバイスやご指摘を頂けたらありがたいです!
URLの有効期限
設定ファイル config/initializers/devise.rb
を編集
config/initializers/devise.rb
Devise.setup do |config|
# 省略
config.confirm_within = 1.minutes
# 省略
end
この記述内容はアカウントを登録してから
・1分以内なら確認化
・1分以降なら確認不可
になる設定ができる!