1.由于网站无需验证,只需一封欢迎邮件,在config/intiailzers/devise.rb里面配置 config.allow_unconfirmed_access_for = nil #2.days 2.配置user--编辑app/models/user.rb文件,先写一下数据这一块 class User < ActiveRecord::Base # Include default devise modules. Others available are: # :token_authen…