简体   繁体   中英

How can I render the devise signin and signup views on the layout to be available on all pages

我想在我的应用程序的所有视图上显示devise登录和注册页面,以便可以从任何地方公开访问它。如何实现此目的,所以我不需要使用devise请求仅显示登录或注册表单?

You could extract the views from devise (mainly good for more customization) by running

rails generate devise:views

This will extract the devise views into your app/views path. Take the forms from there and add them to your existing application template.

See the devise documentation for more information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM