LINUX.ORG.RU

сессии в базе - ror


0

0
Вкл. сессии (rake db:sessions:create -- rake db:migrate), в файле environment.rb раскомментировал строку (config.action_controller.session_store = :active_record_store), после стала происходить ошибка (secret given to the #protect_from_forgery call. Set that or use a session store capable of generating its own keys (Cookie Session Store)), из-за button_to, почему?
anonymous
пойди в app/controllers/application.rb и увидь:

# See ActionController::RequestForgeryProtection for details
# Uncomment the :secret if you're not using the cookie session store
protect_from_forgery # :secret => 'ff93878fb135fbe3b3f807132801830a'
volh ★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.