<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kimura34</author_name>
  <author_url>https://blog.hatena.ne.jp/kimura34/</author_url>
  <blog_title>学習記録</blog_title>
  <blog_url>https://kimura34.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>attributeとは 属性のことです。必要に応じて、既存の属性の型をオーバーライドすることができます。 attribute更新メソッド これからさまざまな更新メソッドを見ていきたいと思います。 単一のattributeを更新する 指定した一つのattributeのみを変更したいときは、attribute=を使います。オブジェクトの変更をするだけで、DBに保存はしません。 ※保存が必要なときは別途saveやupdateを行います。 user.name = 'Hoge' user.save # DB更新のためにsaveを使う 複数のattributeをまとめて更新する 特定のいくつかのattri…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkimura34.hatenadiary.com%2Fentry%2F2021%2F04%2F25%2F221741&quot; title=&quot;Active Recordのattributeを使った更新メソッド - 学習記録&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>2021-04-25 22:17:41</published>
  <title>Active Recordのattributeを使った更新メソッド</title>
  <type>rich</type>
  <url>https://kimura34.hatenadiary.com/entry/2021/04/25/221741</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
