<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>y_hakoiri</author_name>
  <author_url>https://blog.hatena.ne.jp/y_hakoiri/</author_url>
  <blog_title>箱のプログラミング日記。</blog_title>
  <blog_url>https://www.y-hakopro.com/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>業務に入ってから、「エラーハンドリング」の重要性をひしひしと感じています。 やっぱりイチ企業のサービスとなると、エラーが起こっては困るので コードの至る所に対処が散りばめられているんですね。。 ポートフォリオなんかでなんとなくやっていたのとは桁違いです。 ということで、最近使ったエラー対処法をいくつかまとめようかなと思います。 &amp;. 通称、ぼっち演算子 何をしてくれるかというと、レシーバがnilじゃなかった時だけメソッドを実行してくれます。 例えば、current_userがnilだった場合 （index.html.haml） ``` = current_user.name ``` nilに対…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.y-hakopro.com%2Fentry%2F2019%2F10%2F02%2F220849&quot; title=&quot;ぼっち演算子とpresence【Rails】 - 箱のプログラミング日記。&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://cdn-ak.f.st-hatena.com/images/fotolife/y/y_hakoiri/20191102/20191102121618.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-10-02 22:08:49</published>
  <title>ぼっち演算子とpresence【Rails】</title>
  <type>rich</type>
  <url>https://www.y-hakopro.com/entry/2019/10/02/220849</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
