<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tbpg</author_name>
  <author_url>https://blog.hatena.ne.jp/tbpg/</author_url>
  <blog_title>Tbpgr Blog</blog_title>
  <blog_url>https://tbpgr.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby on Rails</anon>
  </categories>
  <description>概要 format 詳細 ActiveRecordで、validation時にformatを利用することで、 正規表現によるパラメータチェックを行うことができます。 サンプル テーブル定義 CREATE TABLE &quot;articles&quot; ( &quot;id&quot; INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, &quot;title&quot; varchar(255), &quot;text&quot; text, &quot;created_at&quot; datetime, &quot;updated_at&quot; datetime ); Validation class Article &lt; ActiveRecord::Base h…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20140701%2F1404222018&quot; title=&quot;Ruby on Rails | Validation | format - Tbpgr 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>2014-07-01 22:40:18</published>
  <title>Ruby on Rails | Validation | format</title>
  <type>rich</type>
  <url>https://tbpgr.hatenablog.com/entry/20140701/1404222018</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
