<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Joe_noh</author_name>
  <author_url>https://blog.hatena.ne.jp/Joe_noh/</author_url>
  <blog_title>mmag</blog_title>
  <blog_url>https://joe-noh.hatenablog.com/</blog_url>
  <categories>
    <anon>Elixir</anon>
    <anon>Phoenix</anon>
  </categories>
  <description>phoenix_htmlのlinkヘルパは、リクエストメソッドがgetの場合は普通にaタグでリンクを作り、そうでない場合はaタグをformでラップして、onclick属性が働くような組み立て方をしてくれます。 で、何かリソースをdeleteするようなリンクでは、「ホントにOK?」な確認をして欲しいと思うわけで、Railsだとconfirmオプションとか与えればよかったのですが、Phoenixではそうもいかず。 ソースを読んでみると、どうやらonclick属性はオプションでカスタマイズできないようです。 なので、やってることはヘルパとほぼ同じだけどonclickだけ違う、みたいなものを目指して、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjoe-noh.hatenablog.com%2Fentry%2F2015%2F07%2F05%2F233950&quot; title=&quot;Phoenixでconfirm付きのdelete - mmag&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>2015-07-05 23:39:50</published>
  <title>Phoenixでconfirm付きのdelete</title>
  <type>rich</type>
  <url>https://joe-noh.hatenablog.com/entry/2015/07/05/233950</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
