<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hkob</author_name>
  <author_url>https://blog.hatena.ne.jp/hkob/</author_url>
  <blog_title>hkob’s blog</blog_title>
  <blog_url>https://hkob.hatenablog.com/</blog_url>
  <categories>
    <anon>開発記録</anon>
  </categories>
  <description>locale 機能の修正 昨日書いた locale について、別のシステムを作っていたときに楽に書けていたことに気づいた。別のシステムではページのタイトルを以下のように記述していた。 %h1= t '.title' これは、view の中でパスを省略すると、view のパスが自動的に補完される機能によるものである。app/views/teacher/years/index.html.haml であれば、ja.teacher.years.index.title となる。昨日の例では views というパスを入れてしまったこと、teacher_years と「_」を使ってしまったため、このような表…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhkob.hatenablog.com%2Fentry%2F20150202%2F1422886072&quot; title=&quot;24. locale の修正と DatabaseRewinder - hkob’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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-02-02 23:07:52</published>
  <title>24. locale の修正と DatabaseRewinder</title>
  <type>rich</type>
  <url>https://hkob.hatenablog.com/entry/20150202/1422886072</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
