<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hayashi_whc</author_name>
  <author_url>https://blog.hatena.ne.jp/hayashi_whc/</author_url>
  <blog_title>ホワイトヘルスケア - テックブログ</blog_title>
  <blog_url>https://techblog.whitehealthcare.co.jp/</blog_url>
  <categories>
    <anon>Ruby on Rails</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>概要 はじめに 発生した現象と調査について 事の始まり 発生した問題 原因の調査 まとめ / 感想 採用情報 採用情報詳細 概要 ActiveRecordを継承したmodelには、errorsで任意にエラーを追加できる 追加したエラーは、saveやvalidateに成功すると、errorsから削除される はじめに ホワイトヘルスケア エンジニアの林です。 本記事は、ActiveRecord を使っていた際に、errorsに追加したエラーが意図せず消えてしまった時の挙動を調べた際の話になります。 発生した現象と調査について 事の始まり 1 対多の関係のテーブルに対し、ある機能を作成していた時の話…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechblog.whitehealthcare.co.jp%2Fentry%2F2023%2F12%2F01%2F070000&quot; title=&quot;ActiveRecordのerrorsにaddしてもsaveに成功するとaddした内容がなくなる - ホワイトヘルスケア - テックブログ&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>2023-12-01 07:00:00</published>
  <title>ActiveRecordのerrorsにaddしてもsaveに成功するとaddした内容がなくなる</title>
  <type>rich</type>
  <url>https://techblog.whitehealthcare.co.jp/entry/2023/12/01/070000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
