show でセッション var :time_block_id を設定しました。フォームが送信されると、同じ session_id と _csrf_token が表示されますが、:time_block_id はなくなります。何か案は?レール 3.2.6
controller.rb
def show
session[:time_block_id] = "test"
debugger
(rdb:663) p session
# outputs ...
{"session_id"=>"1232115b1ffe78b7e71163e4bd48974a", "user_return_to"=>"/app/admin/clients", "_csrf_token"=>"/aFAp07yrpQtjgXDS2HQk+uNZLD3QuGRzSGX4Mszyug=", "warden.user.user.key"=>["User", [2], "$2a$10$1Mn/Riq9WdmnUUUiVhXbsO"], "time_block_id"=>"test"}
render_wizard
end
def update
debugger
(rdb:663) p session
{"session_id"=>"1232115b1ffe78b7e71163e4bd48974a", "user_return_to"=>"/app/admin/clients", "_csrf_token"=>"/aFAp07yrpQtjgXDS2HQk+uNZLD3QuGRzSGX4Mszyug=", "warden.user.user.key"=>["User", [2], "$2a$10$1Mn/Riq9WdmnUUUiVhXbsO"]}
a = ""
end
_form.html.haml
=simple_form_for @time_block, url: wizard_path, :method => :put do |f|
=f.submit "go"