<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>miyohide</author_name>
  <author_url>https://blog.hatena.ne.jp/miyohide/</author_url>
  <blog_title>miyohide's blog</blog_title>
  <blog_url>https://miyohide.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>railsはよくある入力値チェックをあらかじめ用意してくれています。ActiveRecordにあるバリデーション。例えば、空でないことをチェックするためにvalidates_presence_ofってものが用意されていて， class Buin &lt; ActiveRecord::Base validates_presence_of :syain_id, :name, :message end ってモデルに書くだけで，syain_idとnameとmessageに対して空でないことをチェックしてくれます。これらはどれかひとつでも空だとエラーとなり，erbにある タグにてエラーメッセージが出てきます。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmiyohide.hatenablog.com%2Fentry%2F20090322%2F1237706599&quot; title=&quot;エラーメッセージを日本語化する - miyohide&amp;#39;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>http://cdn-ak.f.st-hatena.com/images/fotolife/m/miyohide/20090322/20090322161903.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-03-22 16:23:19</published>
  <title>エラーメッセージを日本語化する</title>
  <type>rich</type>
  <url>https://miyohide.hatenablog.com/entry/20090322/1237706599</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
