Kar*_*A K 3 authentication devise ruby-on-rails-3
我在我的应用程序中使用设计进行身份验证.当我尝试注册时,我收到以下错误:
Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
Run Code Online (Sandbox Code Playgroud)
我正在使用:comfirmable并且在迁移中没有注释t.confirmable
KL-*_*L-7 11
为了使用confirmable模块,您需要配置设备ActionMailer用于发送确认电子邮件.解决问题的第一步是在您environment.rb或相应的文件中为特定环境设置邮件程序主机:
config.action_mailer.default_url_options = { :host => “example.com” }
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3336 次 |
| 最近记录: |