设计。注册和登录在同一页 [英] Devise. Registration and Login at the same page

查看:112
本文介绍了设计。注册和登录在同一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Devise整合到我的应用程序中。我需要在页面顶部的实现登录表单(我已经将此表单实现到布局页面),并且已经实现了包含注册表单的注册。
但是当我尝试提交不正确的注册数据时,它会显示两种表单的验证错误。

I'm trying to integrate Devise into my application. I need implement login form at top of the page (I've implemented this form into layout page) and I've implemented registration which contains registration form. But it shows validation errors for both form when I tried submit incorrect registration data.

推荐答案

没有更多的信息,很难猜到问题是什么。我发现维基页面真的有帮助(越来越多),尽管你可能已经看过:

Without more information, it's hard to guess what the problem is. I've found the Wiki pages to be really helpful (and increasingly so), though you may have already looked them over:


Devise Wiki页面

两页可能与您的需求有关:

Two pages that might be relevant to your needs:


在应用程序的任何位置显示一个自定义的sign_in表单

创建自定义布局

希望这有帮助!

- ff

这篇关于设计。注册和登录在同一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆