开发者

Rails: client_side_validations being called twice

I'm using client_side_validations on my sign up form. When a user signs up they are required to have an email. But if they authenticate with twitter through omniauth which doesn't give emails, they are redirected back to a failing validation form on my signup page that says "Email cant be blank".

开发者_运维百科If I click out of the email form field without entering anything a second "Email can't be blank" appears after the first message.

How can I make sure the validations are only called once and never pile on top of eachother?

Thanks


Can you open an issue on Github? https://github.com/bcardarella/client_side_validations/issues so we can continue the conversation there?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜