No :secret given to the #protect_from_forgery call. Set that or use a session store capable of generating its own keys (Cookie Session Store).
若要解決此問題,必須將 app\controllers\application.rb中的protect_from_forgery # :secret => 'your_secret_id'修改為
protect_from_forgery :secret => 'your_secret_id'
即可將此問題排除。
沒有留言:
張貼留言