可能重複:
No secret option provided to Rack::Session::Cookie warning?Rails的安全警告 - 祕密選項
我剛剛創建了一個新的Rails 3.2.8應用程序,並運行以下命令
rails g paperclip myModel image
我事後得到這個警告
SECURITY WARNING: No secret option provided to Rack::Session::Cookie.
This poses a security threat. It is strongly recommended that you
provide a secret to prevent exploits that may be possible from crafted
cookies. This will not be supported in future versions of Rack, and
future versions will even invalidate your existing user cookies.
這一切都很好,但我應該怎麼做。任何想法
感謝
請顯示包含回形針的Gemfile行..謝謝。 –