我想讓我的應用程序的實時使用Aplication.renderer.render如何從導軌5色器件
這是我的錯誤
::的ActionView ::模板錯誤(設計找不到請求環境中的
Warden::Proxy
實例 確保您的應用程序正在按預期方式加載Devise和Warden,並且Warden::Manager
中間件存在於您的中間件堆棧中 如果您在其中一個測試中看到此項,請確保您的測試是要麼執行Rails中間件堆棧,要麼測試正在使用Devise::Test::ControllerHelpers
模塊爲您注入request.env['warden']
對象。)
1:-if user_signed_in?
2:.ui.popup.computer {id:「post#{post.id} user#{post.user.id}」,style:「padding:0px」}
3:.ui.card
4:圖像配
我不知道該怎麼辦
請幫助我。
我還沒有找到妥善的解決辦法呢,但這裏有一些鏈接僅供參考:https://evilmartians.com/chronicles/new-feature-in-rails-5-render-views-outside-of-actions,http://www.thegreatcodeadventure.com/using-action- controller-renderers-in-rails-5-with-devise/ – artificis