<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sasakix10</author_name>
  <author_url>https://blog.hatena.ne.jp/sasakix10/</author_url>
  <blog_title>sasakix10’s diary</blog_title>
  <blog_url>https://sasakix10.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>・Userモデルに記載していた def own?(object) id == object.user_id end を利用して、自分が作成した掲示板のみ、編集、削除ボタンを表示させるように実装。 ・app/views/boards/show ・app/views/boards/_board.html.erb ※重要 boards_controller.rb # Bad @board = Board.find(params[:id]) ※ この記載では、URL入力時のIDを変えると自分以外が作成した掲示板を対象にできてしまう。 このアプリは他の人の掲示板を見られる仕様のため、showアクションで…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsasakix10.hateblo.jp%2Fentry%2F2021%2F05%2F25%2F202305&quot; title=&quot;⭐️掲示板の編集、削除機能の実装   - sasakix10’s diary&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>https://i.gyazo.com/da606983db590be52d07ee5f63d2dcc5.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-05-25 20:23:05</published>
  <title>⭐️掲示板の編集、削除機能の実装  </title>
  <type>rich</type>
  <url>https://sasakix10.hateblo.jp/entry/2021/05/25/202305</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
