<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yunagi_n</author_name>
  <author_url>https://blog.hatena.ne.jp/yunagi_n/</author_url>
  <blog_title>なつねこメモ</blog_title>
  <blog_url>https://tech.natsuneko.blog/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>rails-i18n を入れてくれるとだいたい良い感じにしてくれるんですけども、 「なんかちがうんよー」みたいな時もあります。 例えば、次のようなとき： class Attachment belongs_to :illust mount_uploader :file, ImageUploader end # illust.rb class Illust has_many :attachments validates :attachments, length: {in: 1..10} # 10枚まで end と、エラーメッセージは画像のようになっちゃいます。 それだと意味不明で困るので、下のよう…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.natsuneko.blog%2Fentry%2F2017%2F02%2F23%2Frails-error-message-good-style&quot; title=&quot;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://assets.natsuneko.blog/images/20170223/20170223221627.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-02-22 15:00:00</published>
  <title>Rails でエラーメッセージを良い感じにしたい</title>
  <type>rich</type>
  <url>https://tech.natsuneko.blog/entry/2017/02/23/rails-error-message-good-style</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
