简体   繁体   中英

Rails 4 + ActiveAdmin + Devise Layout

I'm trying ActiveAdmin with devise and i've generated the devise views (sessions, registrations, and so on).

Without ActiveAdmin when i create /layouts/devise/sessions.html.erb i can change the devise layout which calls the above mentioned views, but this does not happen with ActiveAdmin.

My routes.rb includes:

devise_for :admin_users, ActiveAdmin::Devise.config

And my devise.rb initializer:

config.scoped_views = true

Been looking in the docs but i dont know where to start :(

Anyone have faced this?

最后,创建一个名为layouts/active_admin_logged_out.html.erb的文件就可以了!

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