<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akira116</author_name>
  <author_url>https://blog.hatena.ne.jp/akira116/</author_url>
  <blog_title>代々木で働く超新米エンジニアの足跡</blog_title>
  <blog_url>https://akira116.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>update 既存のデータのカラムの更新をするときにつかう title = Title.find_by(:title =&gt; &quot;わっしょい&quot;) title.update(:num =&gt; 1) まず、更新したいデータの行全体を取得しなければならない 今回は1行目でtitleがわっしょいのものを取得してきた（1つのみ) 取得してきたものを変数にするその変数.updateで用いる</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakira116.hatenablog.com%2Fentry%2F2016%2F07%2F11%2F164520&quot; title=&quot;update(Activerecordを用いてカラムの更新) - 代々木で働く超新米エンジニアの足跡&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>2016-07-11 16:45:20</published>
  <title>update(Activerecordを用いてカラムの更新)</title>
  <type>rich</type>
  <url>https://akira116.hatenablog.com/entry/2016/07/11/164520</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
