<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ke_takahashi</author_name>
  <author_url>https://blog.hatena.ne.jp/ke_takahashi/</author_url>
  <blog_title>memorandums</blog_title>
  <blog_url>https://memorandums.hatenablog.com/</blog_url>
  <categories>
    <anon>AI</anon>
    <anon>メモ</anon>
  </categories>
  <description>きっかけ 担当している演習科目の講義資料を、今年度使うRuby 3.4.3 / Rails 8.1.3の環境で動作確認していました。去年はRuby 3.2.2 / Rails 8.0系で確認済みで特に問題はなかったので、今回もサラッと流すつもりでした。 ところが、rails newしただけの素のアプリで、session[:xxx] = &quot;foo&quot;と書き込んだ後にsession[:xxx]を読み出そうとすると、必ず以下のエラーで500になることが判明しました。 ArgumentError: wrong number of arguments (given 2, expected 1) cooki…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemorandums.hatenablog.com%2Fentry%2F2026%2F09%2F08%2F220805&quot; title=&quot;json 3.0でActiveSupport::JSON.decodeが壊れてRailsのsessionでエラーが出た話 - memorandums&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-09-08 22:08:05</published>
  <title>json 3.0でActiveSupport::JSON.decodeが壊れてRailsのsessionでエラーが出た話</title>
  <type>rich</type>
  <url>https://memorandums.hatenablog.com/entry/2026/09/08/220805</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
