<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hkob</author_name>
  <author_url>https://blog.hatena.ne.jp/hkob/</author_url>
  <blog_title>hkob’s blog</blog_title>
  <blog_url>https://hkob.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>Rails Tipsの79回目では、所有しないオブジェクトに対する編集の対応を行いました。所有しないオブジェクトに対するアクセスを防ぐため、記事の所有者を確認するメソッドを追加しました。これにより、所有権がない場合にはトップページにリダイレクトします。また、所有権を確認するメソッドは他のアクションでも有効ですが、そのテストは次回行います。(要約 by Notion AI)</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhkob.hatenablog.com%2Fentry%2F2024%2F02%2F17%2F050000&quot; title=&quot;所有しないオブジェクトの処理: 小林研 Rails Tips (79) - hkob’s 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>2024-02-17 05:00:00</published>
  <title>所有しないオブジェクトの処理: 小林研 Rails Tips (79)</title>
  <type>rich</type>
  <url>https://hkob.hatenablog.com/entry/2024/02/17/050000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
