You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot create custom authentication or use 'authenticate_admin_user!' or 'current_admin_user': ActionView::Template::Error: undefined method: destroy_admin_user_session_path
#5424
Closed
starrychloe opened this issue
Jun 7, 2018
· 3 comments
When creating authentication according to docs using authenticate_admin_user! or current_admin_user, it generates a template error. It works if those settings are commented out (but without authentication then).
When creating authentication according to docs using
authenticate_admin_user!
orcurrent_admin_user
, it generates a template error. It works if those settings are commented out (but without authentication then).No similar bugs: https://github.com/activeadmin/activeadmin/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+ActionView%3A%3ATemplate%3A%3AError%3A+undefined+method
See https://stackoverflow.com/questions/50708446/how-do-you-implement-your-own-authentication-with-activeadmin-without-devise-ac
Expected behavior
I expect it to load the dashboard after I log in.
Actual behavior
It crashes.
How to reproduce
Provide the correct password, set the session, then it gives an error page.
####
routes.rb
####
application_controller.rb
####
config/initalizers/active_admin.rb
####
index_controller.rb
Log
ActiveAdmin loads fine with
config.authentication_method
andconfig.current_user_method
commented.Rails 5.0.7, ActiveAdmin 1.3.0
The text was updated successfully, but these errors were encountered: