<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>to_tu</author_name>
  <author_url>https://blog.hatena.ne.jp/to_tu/</author_url>
  <blog_title>珈琲駆動開発</blog_title>
  <blog_url>https://totutotu.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>mobyletteのmobileとのviewファイルの切り替え方法が、MIME typeを変えるという非常にワイルドな方法なために、deviseでのrespond_with()で mobile なんてフォーマットのrendererねえよって言われてしまう。 これは、Railsのrenderを担当してるControllerに変更を加えることで解決する。 Railsのアプリが立ち上がったときに、to_mobileにto_htmlメソッドのaliasを貼るようにします。僕は config/initializers/mobile_responder.rbってファイルを作成しました。 ActionCon…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftotutotu.hatenablog.com%2Fentry%2F2015%2F12%2F15%2F182838&quot; title=&quot;deviseとmobyletteでNo renderer defined for format: mobileになる - 珈琲駆動開発&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-12-15 18:28:38</published>
  <title>deviseとmobyletteでNo renderer defined for format: mobileになる</title>
  <type>rich</type>
  <url>https://totutotu.hatenablog.com/entry/2015/12/15/182838</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
