undefined local variable or method `user_signed_in' in application controller
but working fine in application.html.erb
why is that?
I think you have a typo. It's
user_signed_in. That should do the trick!
if user_signed_in? layout 'admin_lte_2' else layout 'some_other_layout' end
Join 29,763+ developers who get early access to new screencasts, articles, guides, updates, and more.