Rails 3,尝试确认电子邮件地址在 dbm 中,但收到错误的参数数量错误
我的来源位于: https://gist.github.com/f01685376a02a577a9cb
有问题的方法:
def is_valid_email?(address)
User.find_by_email(address)
end
我认为解决方案是将 User.find_by_email(address)
的值更改为类似的值User.find_by_email(next_approver_email) = (address)
但我知道这不起作用。
Next_approver_email
是我们要根据 user.email
数据库列进行检查的内容,
有什么想法吗?
My source is at: https://gist.github.com/f01685376a02a577a9cb
the method in question:
def is_valid_email?(address)
User.find_by_email(address)
end
I think the solution is to change the value for User.find_by_email(address)
to something like User.find_by_email(next_approver_email) = (address)
but I know that doesn't work.
Next_approver_email
is what we are tying to check against the user.email
db column
any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要将电子邮件传递到第 5 行末尾的
is_valid_email?
You need to pass the email into
is_valid_email?
at the end of line 5