0
我使用的Rails 4.2和寶石設計3.4 我使用助手form_for
與remote: true
和行動create
與before action :authenticate_user!
設計重定向 - Rails的4.2
當用戶未經授權,authenticate_user
必須重定向到new session path
。這不會發生。在瀏覽器中我有401 error + 'You need to sign in or sign up before continuing.'
如何配置devise gem?