Rails.application.configure do (省略)... # Devise host mail setting config.action_mailer.default_url_options = { host: 'localhost:3000' } end