Rails / Devise定制注册验证在模型(Rspec)中有效,但在视图(Cucumber)中无效。
在该网站上的其他地方也曾问过类似的问题(Ruby on rails:设计,是否要添加邀请代码?),尽管该解决方案适用于他们,但我无法为自己使用它来挽救生命。我的模型代码:
class User < ActiveRecord::Base
devise :database_authenticatable, :registerable, :trackable, :valida
没有找到相关结果
已邀请:
0 个回复