<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ledsun</author_name>
  <author_url>https://blog.hatena.ne.jp/ledsun/</author_url>
  <blog_title>@ledsun blog</blog_title>
  <blog_url>https://ledsun.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>技</anon>
  </categories>
  <description>空文字を許容するのかしないのか混乱したので、メモっておきます。 my-app(dev):002&gt; params = ActionController::Parameters.new(a: &quot;&quot;) =&gt; #&lt;ActionController::Parameters {&quot;a&quot; =&gt; &quot;&quot;} permitted: false&gt; my-app:003(dev)&gt; params.expect :a (my-app):3:in '&lt;main&gt;': param is missing or the value is empty or invalid: a (ActionController::Paramete…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fledsun.hatenablog.com%2Fentry%2F2025%2F11%2F22%2F224533&quot; title=&quot;strong parameterのexpectで空文字はエラー - @ledsun blog&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>2025-11-22 22:45:33</published>
  <title>strong parameterのexpectで空文字はエラー</title>
  <type>rich</type>
  <url>https://ledsun.hatenablog.com/entry/2025/11/22/224533</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
